content stringlengths 23 1.05M |
|---|
with Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Text_IO;
with Ada.Text_IO;
with Ada.Command_Line;
package External is
package STR renames Ada.Strings.Unbounded;
package IO renames Ada.Strings.Unbounded.Text_IO;
package IOB renames Ada.Text_IO;
package CMD renames Ada.Command_Line;
function... |
with
Shell.Commands,
Ada.Text_IO;
procedure Test_Pipeline_Output
is
use Ada.Text_IO;
begin
Put_Line ("Begin 'Pipeline_Output' test.");
New_Line (2);
declare
use Shell,
Shell.Commands,
Shell.Commands.Forge;
Commands : Command_Array := To_Commands ("ps -A | grep ... |
with stm32.gpio; use stm32.gpio;
package body HAL.GPIO is
procedure write (Point : GPIO_Point_Type; Signal : GPIO_Signal_Type) is
begin
case Signal is
when HIGH =>
case Point.Port is
when A => GPIOA_Periph.BSRR.BS.Arr( Point.Pin ) := True;
when B => G... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Unchecked_Conversion;
with GL.API;
with GL.Enums.Getter;
with GL.Low_Level.Enums;
package body GL.Buffers is
use type Culling.Face_Selector;
procedure Clear (Bits : Buffer_Bits) is
... |
with
float_Math.Geometry.D2,
float_Math.Geometry.D3,
float_Math.Algebra.linear.D3;
package Physics
--
-- Provides a physics interface for 2D/3D simulations.
--
is
pragma Pure;
package Math renames float_Math;
package Geometry_2D renames math.Geometry.d2;
package Geometry... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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... |
-- This spec has been automatically generated from STM32F7x9.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.DFSDM is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype DFSDM_CHCFG0R1_SITP_... |
------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
--------------------------------------------------------------------------------
-- * Spec name vector.ads
-- * Project name ctffttest
-- *
-- * Version 1.0
-- * Last update 11/5/08
-- *
-- * Created by Adrian Hoe on 11/5/08.
-- * Copyright (c) 2008 AdaStar Informatics http://adastarinformatics.com
-- * ... |
------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Definitions;
with Program.Element_Vectors;
with Program.Lexical_Elements;
with Program.Elements.Identifiers;
pa... |
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- Parsers.Multiline_Source Luebeck --
-- Implementation Winter, 2004 --
-- ... |
package body BSSNBase.ADM_BSSN is
----------------------------------------------------------------------------
-- from BSSN to ADM
function adm_gab (gBar : MetricPointArray;
phi : Real)
return MetricPointArray
is
begin
return exp(4.0*phi) * gBar;
... |
with Vecteurs; use Vecteurs;
with Liste_Generique;
limited with Courbes.Visiteurs;
package Courbes is
type Courbe is abstract tagged private;
type Courbe_Ptr is access all Courbe'Class;
package Liste_Courbes is new Liste_Generique(Courbe_Ptr);
subtype Coordonnee_Normalisee is Float range 0.0 .. 1.0;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with AdaBase;
with Connect;
with CommonText;
with Ada.Text_IO;
with AdaBase.Results.Sets;
with Spatial_Data;
procedure Spatial4 is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package ARS renames AdaBase.Results.Sets;
package CT renames CommonText;
package SD renames Spatial_Data;
b... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
with AdaBase;
with Connect;
with CommonText;
with Ada.Text_IO;
with Ada.Wide_Text_IO;
with Ada.Wide_Wide_Text_IO;
with AdaBase.Results.Sets;
procedure UTF8 is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package WIO renames Ada.Wide_Text_IO;
package WWO renames Ada.Wide_Wide_Text_IO;
p... |
with STM32F4.LCD; use STM32F4.LCD;
package Screen_Interface is
subtype Width is STM32F4.LCD.Width;
subtype Height is STM32F4.LCD.Height;
type Touch_State is record
Touch_Detected : Boolean;
X : Width;
Y : Height;
end record;
type Point is record
X : Width;
Y : Height;
... |
pragma License (Unrestricted);
-- extended unit specialized for Windows
with Ada.IO_Exceptions;
package Ada.Hierarchical_File_Names is
-- "Pure" and detailed version of Ada.Directories.Hierarchical_File_Names.
-- This package is system-specific.
pragma Pure;
-- path delimiter
subtype Path_Delimiter... |
-- The Village of Vampire by YT, このソースコードはNYSLです
package body Tabula.Villages is
use type Ada.Strings.Unbounded.Unbounded_String;
use type Casts.Person_Sex;
function Same_Id_And_Figure (Left, Right : Person_Type'Class) return Boolean is
begin
return Left.Id = Right.Id and then Left.Image = Right.Image;
end Sam... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, Universidad Politécnica de Madrid --
-- --
-- ... |
-- A83A06A.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... |
pragma License (Unrestricted);
-- implementation unit
with System;
private package Ada.Containers.Hash_Tables is
pragma Preelaborate;
Node_Size : constant := Standard'Address_Size + Hash_Type'Size * 2;
type Node;
type Node_Access is access Node;
type Node is limited record
Next : Node_Access;
... |
with Algorithm; use Algorithm;
with Botstate; use Botstate;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
procedure Usage
is
begin
Put_Line ("./adaroombot <name of tty>");
end Usage;
My_Bot : Bot;
begin
if Argument_Count = 1 then
... |
with HAL.UART;
with Cortex_M.NVIC;
with RP2040_SVD.Interrupts;
with RP.Clock;
with RP.Device;
with RP.GPIO;
with RP.UART;
with Pico;
with Pico_UART_Interrupt_Handlers;
procedure Pico_Slave_Interrupt_Main is
subtype Buffer_Range is Integer range 1 .. 1;
UART : RP.UART.UART_Port renames RP.Devic... |
with Interfaces; use Interfaces;
with Cpu; use Cpu;
with Types; use Types;
package Instruction with
SPARK_Mode => On
is
subtype Opcode is Word;
function Fetch (Cpu : Chip8) return Opcode
with Post => Fetch'Result = Shift_Left(Word(Cpu.Mem(Cpu.PC)), 8) +
Word(Cpu.Mem(Cpu.PC + 1));
proced... |
with Ada.Text_IO; use Ada.Text_IO;
package body Father.Son is
function "+" (Left : Son_Type; Right : Father_Type) return Father_Type is
T : Father_Type := Right;
begin
Put_Line ("using this");
Father_What (T);
return Father_Type (3 * Integer (Left) + Integer (T));
end "+";
funct... |
package Raspio.GPIO.Encoder is
Encoder_Size : constant := 2;
type Encoder_Pins is array (1 .. Encoder_Size) of Pin_Type;
type Encoder_Pin_Values is array (1 .. Encoder_Size) of Pin_State;
type Encoder_Type is limited private;
type Diff_Type is range -1 .. 1;
function Create
(Pin_A ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- AOC 2020, Day 23
package Day is
type Cup_Number is range 1..9;
type Cup_Number_Mod is mod Cup_Number'Last + 1;
type Cup_Index is range 0..8;
type Cup_Index_Mod is mod Cup_Index'Last + 1;
type Cup_Array is array(Cup_Index) of Cup_Number;
function play(c : in Cup_Array; steps : in Natural) return Stri... |
pragma License (Unrestricted);
package Ada.Streams is
pragma Pure;
type Root_Stream_Type is abstract tagged limited private;
pragma Preelaborable_Initialization (Root_Stream_Type);
type Stream_Element is
mod 2 ** Standard'Storage_Unit; -- implementation-defined
type Stream_Element_Offset is
... |
package body Commands is
procedure Host (Bot : in out Irc.Bot.Connection;
Msg : Irc.Message.Message) is
Host : String := GNAT.Sockets.Host_Name;
Target : String := Ada.Strings.Unbounded.To_String
(Msg.Privmsg.Target);
begin
-- Send back our host name to whi... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- AGAR CORE LIBRARY --
-- A G A R . D A T A _ S O U R C E --
-- B o d y --
-- ... |
Pragma Ada_2012;
Package Connection_Types with Pure is
-- Name of the nodes.
Type Node is (A, B, C, D, E, F, G, H);
-- Type for indicating if a node is connected.
Type Connection_List is array(Node) of Boolean
with Size => 8, Object_Size => 8, Pack;
Function "&"( Left : Connection_List; Right : ... |
-- { dg-do run }
procedure Pack12 is
type U16 is mod 2 ** 16;
type Key is record
Value : U16;
Valid : Boolean;
end record;
type Key_Buffer is record
Current, Latch : Key;
end record;
type Block is record
Keys : Key_Buffer;
Stamp : U16;
end record;
pragma Pack (Block);
My_Blo... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Defining_Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Discrete_Ranges;
with Program.Elements.Loop_Parameter_Speci... |
-----------------------------------------------------------------------
-- asf-navigations-redirect -- Navigator to redirect to another page
-- Copyright (C) 2010, 2011 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
-- { dg-do compile }
with Ada.Exceptions;
package body Noreturn3 is
procedure Raise_Error (E : Enum; ErrorMessage : String) is
function Msg return String is
begin
return "Error :" & ErrorMessage;
end;
begin
case E is
when One =>
Ada.Exceptions.Raise_Exception (Exc1'Identit... |
with Protypo.Api.Engine_Values.Engine_Value_Vectors;
package Callbacks is
use Protypo.Api;
function Sin (X : Engine_Values.Engine_Value_Vectors.Vector)
return Engine_Values.Engine_Value_Vectors.Vector;
end Callbacks;
|
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
limited with bits_types_struct_timeval_h;
limited with bits_types_struct_timespec_h;
limited with bits_types_u_sigset_t_h;
package sys_select_h is
-- unsupported macro: FD_SETSIZE __FD_SETSIZE
-- unsupported macro: NFDBITS __NFD... |
--
-- 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.Unbounded;
with Ada.Conta... |
package openGL.Conversions
is
function to_Vector_4 (From : in lucid_Color) return Vector_4;
function to_Vector_4 (From : in light_Color) return Vector_4;
function to_light_Color (From : in lucid_Color) return light_Color;
function "+" (From : in lucid_Color) return light_Color renames to_light_... |
----------------------------------------------------------------------------
-- 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 P... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Interfaces.C;
package body Lexer.Source.C_Handler is
use type Yaml.C.Bool;
procedure Read_Data (S : in out Instance; Buffer : out String;
Length : out Natural) is
... |
-----------------------------------------------------------------------
-- upload_server -- Example of server with a servlet
-- Copyright (C) 2012, 2015, 2018, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
-----------------------------------------------------------------------
-- css-analysis-rules -- CSS Analysis Rules
-- Copyright (C) 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fil... |
package body BBqueue.Buffers.FFI is
function Create (Size : Buffer_Size) return BufferPtr is
begin
return new BBqueue.Buffers.Buffer (Size);
end Create;
procedure Drop (Ptr : in out BufferPtr) is
begin
Free (Ptr);
end Drop;
end BBqueue.Buffers.FFI;
|
with avtas.lmcp.byteBuffers; use avtas.lmcp.byteBuffers;
package -<full_series_name_dots>-.object is
type Object is abstract new avtas.lmcp.object.Object with private;
type Object_Acc is access all Object;
type Object_Any is access all Object'Class;
overriding function getSeriesVersion(this : Object) ret... |
with GL; use GL;
with Glut; use Glut;
package ada_sphere_procs is
procedure display;
procedure reshape (w : Integer; h : Integer);
procedure menu (value : Integer);
procedure init;
end ada_sphere_procs;
|
-----------------------------------------------------------------------
-- asf-utils -- Various utility operations for ASF
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
with Interfaces.C.Strings;
-- Source code reporting using GCC built-ins to avoid dependencies on GNAT
-- libraries.
package Trendy_Locations is
subtype Char_Ptr is Interfaces.C.Strings.chars_ptr;
function File_Line return Natural;
function File_Name return Char_Ptr;
function Subprogram_Name return Char... |
------------------------------------------------------------------------------
-- --
-- J E W L . W I N 3 2 _ I N T E R F A C E --
-- --
... |
with System.Once;
package body Ada.Strings.Canonical_Composites is
type Long_Boolean is new Boolean;
for Long_Boolean'Size use Long_Integer'Size;
function expect (exp, c : Long_Boolean) return Long_Boolean
with Import,
Convention => Intrinsic, External_Name => "__builtin_expect";
procedure... |
-----------------------------------------------------------------------
-- Appenders -- Log appenders
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- yo... |
-- PR ada/28591
-- Reported by Martin Michlmayr <tbm@cyrius.com>
-- { dg-do compile }
-- { dg-options "-g" }
with Interfaces; use Interfaces;
package Unchecked_Union is
type Mode_Type is (Mode_B2);
type Value_Union (Mode : Mode_Type := Mode_B2) is record
case Mode is
when Mode_B2 =>
... |
-------------------------------------------------------------------------------
-- 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... |
-----------------------------------------------------------------------
-- ado-datasets-tests -- Test executing queries and using datasets
-- Copyright (C) 2013, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- y... |
with Ada.Text_IO;
with Ada.Strings.Unbounded;
package body kv.avm.Log is
Last_Log_Line : Ada.Strings.Unbounded.Unbounded_String;
Last_Error_Line : Ada.Strings.Unbounded.Unbounded_String;
procedure Put(Str : String) is
begin
if Verbose then
Ada.Text_IO.Put(Str);
end if;
end Put;
... |
with System; use System;
with Ada.Unchecked_Conversion;
with STM32_SVD.DMA; use STM32_SVD.DMA;
package body STM32GD.USART.Peripheral is
DMA_Index : Integer := 1;
function W is new Ada.Unchecked_Conversion (Address, UInt32);
protected body IRQ_Handler is
entry Wait when Data_Available is
begin
... |
package discr3 is
type E is range 0..255;
type R1 is range 1..5;
type R2 is range 11..15;
type S1 is array(R1 range <>) of E;
type S2 is array(R2 range <>) of E;
V1 : S1( 2..3) := (0,0);
V2 : S2(12..13) := (1,1);
subtype R3 is R1 range 2..3;
V3 : S1 (R3);
end discr3;
|
--------------------------------------------------------------------
--| Package : Queue_Package Version : 2.0
--------------------------------------------------------------------
--| Abstract : Specification of a classic queue.
---------------------------------------------------------... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Terminal_Interface.Curses;
with Port_Specification;
with HelperText;
package Options_Dialog is
package TIC renames Terminal_Interface.Curses;
package PSP renames Port_Specification;
package HT rena... |
with
impact.d2.Math;
package Impact.d2.Types
--
-- Internal types.
--
is
use impact.d2.Math;
-- This is an internal structure.
--
type b2Position is
record
c : b2Vec2;
a : float32;
end record;
-- This is an internal structure.
--
type b2Velocity is
... |
with
Interfaces.C,
System;
use type
Interfaces.C.int,
System.Address;
package body FLTK.Widgets.Groups.Spinners is
procedure spinner_set_draw_hook
(W, D : in System.Address);
pragma Import (C, spinner_set_draw_hook, "spinner_set_draw_hook");
pragma Inline (spinner_set_dra... |
with Ada.Text_IO; use Ada.Text_IO;
with HAL.Block_Drivers;
with Monitor.Block_Drivers; use Monitor.Block_Drivers;
with Dummy_Block_Driver; use Dummy_Block_Driver;
procedure TC_Block_Driver is
BD : aliased Dummy_BD;
Mon : Block_Driver_Monitor (BD'Unchecked_Access,
Put... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with File_Utilities; use File_Utilities;
with Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_File_Utilities is
Failure_Count : Natural := 0;
Check_Idx : Positive := 1;
-- --------------------------------------------------------------------------
procedure Ne... |
with AUnit.Assertions; use AUnit.Assertions;
with Interfaces.C.Strings;
with Ada.Text_IO;
with ImageIO;
with PixelArray;
with ImageRegions;
with Histogram;
with HistogramGenerator;
use PixelArray;
package body HistogramTests is
procedure Register_Tests (T: in out TestCase) is
use AUnit.Test_Cases.Registrat... |
-- 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... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Scanner_Destinations;
package body Program.Scanners is
type First_Stage_Index is mod 16#1100#;
type Second_Stage_Index is mod 16#100#;
... |
pragma Ada_2012;
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings, Ada.Strings.UTF_Encoding;
use Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
with Ada.Strings;
package body Encoding is
------------
-- Encode --
------------
function Encode (Text : String) return Wide_Wide_String is
Text_String : ... |
-- POK header
--
-- The following file is a part of the POK project. Any modification should
-- be made according to the POK licence. You CANNOT use this file or a part
-- of a file for your own project.
--
-- For more information on the POK licence, please see our LICENCE FILE
--
-- Pleas... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.COMP is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype COMP1_CSR_COMP1_PWRMO... |
-- Práctica 4: César Borao Moratinos (Hash_Maps_G_Chaining.ads)
generic
type Key_Type is private;
type Value_Type is private;
with function "=" (K1, K2: Key_Type) return Boolean;
type Hash_Range is mod <>;
with function Hash (K: Key_Type) return Hash_Range;
Max: in Natural;
package Hash_Maps_G is
type Ma... |
generic
type T is private;
Obj : T;
package Layered_Abstraction_P is
Obj2 : T := Obj;
end;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- { dg-do compile }
-- { dg-options "-gnatdm -gnatws" }
with Valued_Proc_Pkg; use Valued_Proc_Pkg;
with System; use System;
procedure Valued_Proc is
Status : UNSIGNED_LONGWORD;
Length : POSITIVE;
begin
GetMsg (Status, UNSIGNED_WORD(Length));
end;
|
with Ada.Numerics.Generic_Elementary_Functions;
package Real_Type is
subtype Real is Long_Float;
package Real_Elementary_Functions is
new Ada.Numerics.Generic_Elementary_Functions (Real);
end Real_Type;
|
-- parse_args_suite-parse_args_tests.ads
-- Unit tests for the Parse_Args project
-- 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
-- copyright notice and this permission notice ... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
--*****************************************************************************
--*
--* PROJECT: BingAda
--*
--* FILE: q_bingo_help.adb
--*
--* AUTHOR: Javier Fuica Fernandez
--*
--*****************************************************************************
with Gtk.About_Dialog;
... |
-- C93004F.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 System;
package Crash is
procedure Last_Chance_Handler
(Source_Location : System.Address; Line : Integer);
pragma Export (C, Last_Chance_Handler,
"__gnat_last_chance_handler");
end Crash;
|
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A034 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
Factorials : constant array (Integer range 1 .. 10) of Integer :=
(1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880);
Sum : Integer := 0;
I_L... |
pragma Ada_2020;
with Interfaces;
---- Ada String Format Library
---- @usages:
-- -- specified argumnent index
-- with Fmt, Fmt.Stdtypes;
-- use Fmt, Fmt.Stdtypes;
-- ...
-- Ada.Text_IO.Put_Line(Format("{1:%H-%M-%S} {2}", FAB & Ada.Calendar.Clock & Message));
-- Ada.Text_IO.Put_Line(Format("bin view o... |
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Tk.Menu.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tk.Menu.Test_Data
.Test with
nul... |
package Boolean_Subtype2_Pkg is
type Node_Id is range 0 .. 099_999_999;
subtype Entity_Id is Node_Id;
function Node20 (N : Node_Id) return Node_Id;
function Flag63 (N : Node_Id) return Boolean;
function Present (N : Node_Id) return Boolean;
end Boolean_Subtype2_Pkg;
|
with Ada.Text_IO;
with Pythagorean_Means;
procedure Main is
My_Set : Pythagorean_Means.Set := (1.0, 2.0, 3.0, 4.0, 5.0,
6.0, 7.0, 8.0, 9.0, 10.0);
Arithmetic_Mean : Float := Pythagorean_Means.Arithmetic_Mean (My_Set);
Geometric_Mean : Float := Pythagorean_Means.Geometric... |
with GL.Types;
with GL.Types.Colors; use GL.Types.Colors;
with Geosphere;
package Palet is
use GL.Types;
type Draw_Mode_Type is (OD_Shade, OD_Wireframe ,OD_Magnitude, OD_Orientation);
type Draw_Mode is record
Shade : Boolean := False;
Wireframe : Boolean := False;
Magnitude : ... |
with ACO.OD_Types;
generic
type Item_Type is private;
package ACO.Generic_Entry_Types is
-- Numeric type.
-- When filled with byte array the data is byte swapped if needed.
pragma Preelaborate;
use ACO.OD_Types;
type Entry_Type is new ACO.OD_Types.Entry_Base with private;
function Create (A... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Streams;
with LSP.Messages;
with LSP.Message_Handlers;
with LSP.Types;
private with LSP.Notification_Dispatchers;
private w... |
with System.Storage_Elements;
package body System.Formatting is
pragma Suppress (All_Checks);
use type Long_Long_Integer_Types.Word_Unsigned;
use type Long_Long_Integer_Types.Long_Long_Unsigned;
subtype Word_Unsigned is Long_Long_Integer_Types.Word_Unsigned;
subtype Long_Long_Unsigned is Long_Long_Integ... |
-- PR ada/49732
-- Testcase by Vorfeed Canal
-- { dg-do compile }
-- { dg-options "-gnato" }
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with Interfaces.C.Pointers;
procedure Pointer_Controlled is
function Create (Name : String) return size_t is
type Name_Stri... |
with Configs;
package body Prop_Links is
procedure Append (Prop_List : in out List;
Config : in Configs.Config_Access)
is
begin
Propagation_Lists.Append (Prop_List, Config_Access (Config));
end Append;
procedure Delete (Prop_List : in out List)
is
begin
... |
-- 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... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.