content stringlengths 23 1.05M |
|---|
-- CC3007B.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... |
GLOBAL {
-- # define yySetPosition Attribute.Position.Line := yyLineCount; \
-- Attribute.Position.Column := yyChBufferIndex - yyLineStart - TokenLength;
-- Int_Io.Put (Text_Io.Standard_Output, yyOffset (TokenIndex));
-- Text_Io.New_Line (Text_Io.Standard_Output);
package Int_Io is new Text_Io.Integer_IO (Integer... |
-----------------------------------------------------------------------
-- Jason.Tickets.Models -- Jason.Tickets.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generator: https://ad... |
-- This test is check control data out with a fake class request
with USB_Testing; use USB_Testing;
with USB_Testing.UDC_Stub; use USB_Testing.UDC_Stub;
with USB_Testing.UDC_Scenarios;
with HAL; use HAL;
with USB; use USB;
with USB.Device; use USB.Device;
with USB.HAL.Device; use US... |
package body Ada.Containers.Weak_Access_Holders is
procedure Add_Weak (Item : Weak_Holder_Access) is
begin
Item.Previous := null;
Item.Next := Item.Data.Weak_List;
if Item.Next /= null then
Item.Next.Previous := Item;
end if;
Item.Data.Weak_List := Item;
end Add_Weak;
... |
-------------------------------------------------------------------------------
-- 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... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Tabula;
pragma Unreferenced (Tabula);
package Vampire is
pragma Pure;
use Tabula;
end Vampire;
|
with Ada.Text_IO; use Ada.Text_IO;
with Quaternions;
procedure Test_Quaternion is
package Float_Quaternion is new Quaternions (Float);
use Float_Quaternion;
q : Quaternion := (1.0, 2.0, 3.0, 4.0);
q1 : Quaternion := (2.0, 3.0, 4.0, 5.0);
q2 : Quaternion := (3.0, 4.0, 5.0, 6.0);
r : Float := 7.... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
pragma Ada_2012;
with Hide.Value;
package body Hide.BMP is
MAX_TEXT_LENGTH : constant := 1024;
------------
-- Encode --
------------
type Bit_Vector is array (Natural range <>) of Boolean with Pack => True;
function Encode (Src : Pixel_ARGB32; As : Boolean ) return Pixel_ARGB32 with Inline_Always;
... |
package body ACO.Utils.DS.Generic_Collection is
procedure Initialize
(C : in out Collection)
is
begin
Clear (C);
end Initialize;
procedure Clear
(C : in out Collection)
is
begin
C.Start := 1;
C.Size := 0;
end Clear;
function Is_Full
(C : Collection)
... |
with Gtk.Main;
with Gtk.Window; use Gtk.Window;
with Gtk.Widget; use Gtk.Widget;
with Gtk.Handlers; use Gtk.Handlers;
with Glib; use Glib;
with Gtk.Extra.Plot; use Gtk.Extra.Plot;
with Gtk.Extra.Plot_Data; use Gtk.Extra.Plot_Data;
with Gtk.Extra.Plot_Canvas; use Gtk.Extra.Plot_Canvas;
with Gtk.Extra.Plot_Canvas.... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
generic
with function Allocate return Fixture_Type_Access
is Default_Allocator;
Just_Pretend : Boolean := False;
package Apsepp.Generic_Fixture.Creator is
function Has_Actually_Created return Boolea... |
with Ada.Strings.Hash;
with Ada.Containers.Hashed_Maps;
with Ada.Text_Io;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure Hash_Map_Test is
function Equivalent_Key (Left, Right : Unbounded_String) return Boolean is
begin
return Left = Right;
end Equivalent_Key;
function Hash_Func(Key... |
with Globals_Example1;
with Md_Example4;
package Md_Example5 is
type T is new Md_Example4.T with record
Child_Attribute : Globals_Example1.Itype;
end record;
procedure Display_It (The_T : T);
end Md_Example5;
|
with PP_F_Elementary;
package body Riemann is
function erf_Riemann(x : Float; n : Integer) return Float
is
partitionSize : Integer;
stepSize : Float;
stepStart : Float;
valueStart : Float;
result : Float;
step : Integer;
begin
partitionSize := 2 ** n;
stepSize ... |
with Zstandard.Functions; use Zstandard.Functions;
with Ada.Command_line; use Ada.Command_Line;
with Ada.Directories; use Ada.Directories;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada is
begin
if Argument_Count < 2 then
Put_Line ("Zstandard version: " & Zstd_Version);
Put_Line ("usage:");
... |
-----------------------------------------------------------------------
-- time_manager -- NTP Client instance
-- Copyright (C) 2017 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... |
package body Mat is
function Lnko ( A, B : Positive ) return Positive is
X: Positive := A;
Y: Positive := B;
begin
while X /= Y loop
if X > Y then
X := X - Y;
else
Y := Y - X;
end if;
end loop;
return X;
end Lnko;
function Fa... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
-- Copyright 2020 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This... |
------------------------------------------------------------------------------
-- --
-- THIS IS AN AUTOMATICALLY GENERATED FILE! DO NOT EDIT! --
-- --
-- ... |
with Ada.Containers.Ordered_Maps;
with Ada.Containers.Vectors;
package Intcode is
subtype Element is Long_Long_Integer;
subtype Index is Element range 0 .. Element'Last;
package Opcode_Vectors is new Ada.Containers.Ordered_Maps
(Key_Type => Index,
Element_Type => Element);
package Instan... |
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.SWPMI is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- SWPMI Configuration/Control register
... |
-- This code is from Rosettacode.org
-- http://rosettacode.org/wiki/FizzBuzz
-- This program will run fizz buzz 100 times with if-else strategy.
with Ada.Text_IO; use Ada.Text_IO;
procedure Fizzbuzz is
begin
for I in 1..100 loop
if I mod 15 = 0 then
Put_Line("FizzBuzz");
elsif I mod 5 = 0 th... |
------------------------------------------------------------------------------
-- reporter.ads
--
-- A plain package for serializing the output of messages to standard output.
------------------------------------------------------------------------------
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with AUnit.Test_Fixtures;
package Utilities_Test_Cases is
type Test_Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record;
... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
-- Autogenerated by Generate, do not edit
package GL.API.Ints is
pragma Preelaborate;
Uniform1 : T8;
Uniform1v : T9;
Uniform2 : T10;
Uniform2v : T11;
Uniform3 : T12;
Uniform3v : T13... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with sys_utypes_usize_t_h;
with System;
package heapq_h is
TCOD_HEAP_DEFAULT_CAPACITY : constant := 256; -- heapq.h:40
TCOD_HEAP_MAX_NODE_SIZE : constant := 256; -- heapq.h:41
-- BSD 3-Clause License
-- *
-- * Copyright... |
-- simple.adb: simple example of array declarations and access
procedure Simple is
-- Array type declarations:
-- * index range can be any discrete type
-- * lower and upper bound can be arbitrary
-- * components can have any type
type AT1 is array (1..50) of Integer;
type AT2 is array (4..457) of Integer;
... |
with DOM.Core;
with Ada.Finalization;
package XML_Scanners is
--
-- As well knnown, an XML document is a tree. An XML_Scanner is
-- an object associated to a tree of the node that allows to
-- iterate over the node children. At every time there is a
-- "current child." The function Scan returns the c... |
-- generated parser support file.
-- command line: wisitoken-bnf-generate.exe --generate LR1 Ada_Emacs re2c PROCESS text_rep ada.wy
--
-- Copyright (C) 2013 - 2019 Free Software Foundation, Inc.
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Publ... |
with System;
package STM32F4.FMC is
FMC_Bank1_SDRAM : constant := 16#00000000#;
FMC_Bank2_SDRAM : constant := 16#00000001#;
FMC_Bank1_NORSRAM1 : constant := 16#00000000#;
FMC_Bank1_NORSRAM2 : constant := 16#00000002#;
FMC_Bank1_NORSRAM3 : constant := 16#00000004#;
FMC_Bank1_NORSRAM4 : constant := 16... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Szoroz is
pragma Suppress(Range_Check);
pragma Suppress(Overflow_Check);
I: Integer range 1..10000 := 1;
begin
for J in 1..100 loop
Put_Line(Integer'Image(I));
I := I * 10;
end loop;
end;
|
procedure Hello is
x: Integer := 1;
begin
get(x);
end Hello; |
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- Strings_Edit.Time_Conversions Luebeck --
-- Implementation Summer, 2016 --
-- ... |
-- The Beer-Ware License (revision 42)
--
-- Jacob Sparre Andersen <jacob@jacob-sparre.dk> wrote this. As long as you
-- retain this notice you can do whatever you want with this stuff. If we meet
-- some day, and you think this stuff is worth it, you can buy me a beer in
-- return.
--
-- Jacob Sparre Andersen
p... |
with Common_Formal_Containers; use Common_Formal_Containers;
package AFRL.CMASI.AutomationResponse.SPARK_Boundary with SPARK_Mode is
pragma Annotate (GNATprove, Terminating, SPARK_Boundary);
function Get_WaypointEntity_Set
(Response : AutomationResponse) return Int64_Set
with Global => null;
end AFRL... |
with SiFive.UART; use SiFive.UART;
with System; use System;
with SiFive.SPI; use SiFive.SPI;
with SiFive.PWM; use SiFive.PWM;
with SiFive.GPIO; use SiFive.GPIO;
package SiFive.Device is
-- GPIO0 --
GPIO0 : aliased GPIO_Controller (268828672);
P00 : aliased GPIO_Point (GPIO0'Access, 0);
P01 : aliased GPI... |
-- 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... |
with Interfaces;
with SPARKNaCl;
package Random
with SPARK_Mode => On,
Abstract_State => (Entropy with External => Async_Writers)
is
--===========================
-- Exported subprograms
--===========================
function Random_Byte return Interfaces.Unsigned_8
with Global => Entropy,
... |
-----------------------------------------------------------------------
-- pschema - Print the database schema
-- Copyright (C) 2009, 2010, 2011, 2012, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO, Ada.Characters.Latin_1;
procedure Longest_String_Challenge is
function "+"(S: String) return Unbounded_String renames To_Unbounded_String;
function "-"(U: Unbounded_String) return String renames To_String;
Separator: constant Character :... |
-- Abstract :
--
-- Grammar semantic check routines.
--
-- Copyright (C) 2017 - 2019 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 3,... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2020, AdaCore --
-- --
-- ... |
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2002 - 2005, 2008 - 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- This file is part of the WisiToken package.
--
-- The WisiToken package is free software; you can redistribute it
-- and/or modify it under the terms of the GNU General Public License
-- a... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package Ravenports is
-- Provides information to user via standard out to determine if newer version of Ravenports
-- (as compared to what is installed) is available.
procedure check_version_available;
... |
package gl.Binding
--
-- Provides functions common to all openGL profiles.
--
is
procedure glActiveTexture (Texture : in GLenum);
procedure glBindTexture (Target : in GLenum;
Texture : in GLuint);
procedure glBlendFunc (sFactor : in GLenum;
... |
pragma License (Unrestricted);
-- implementation unit specialized for Darwin
with Ada.Directories.Volumes;
package System.Native_Directories.File_Names is
-- compare file names with normalization and case-insensitive, if HFS+
function Equal_File_Names (
FS : Ada.Directories.Volumes.File_System;
Lef... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is begin put('a' + 'b'); end;
|
package debug1 is
type Vector is array (Natural range <>) of Natural;
type Vector_Access is access Vector;
type Data_Line is record
Length : Vector (1 .. 1);
Line : Vector_Access;
end record;
type Data_Block is array (1 .. 5) of Data_Line;
type Data_Block_Access is access Data_Block... |
-- Ada Standard Libraries
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random;
-- TJa. Libraries
with TJa.Keyboard; use TJa.Keyboard;
with TJa.Window.Elementary; use TJa.Window.Elementary... |
-- $Id: Sets.mi,v 1.8 1994/07/14 10:22:29 grosch rel $
-- $Log: Sets.mi,v $
-- Ich, Doktor Josef Grosch, Informatiker, Sept. 1994
with DynArray, General, Text_Io; use General, Text_Io;
package body Sets is
package Int_Io is new Integer_IO (Integer); use Int_Io;
NoCard : constant Integer := -1;
procedure MakeSet... |
with AdaBase;
with Connect;
with CommonText;
with Ada.Text_IO;
with AdaBase.Results.Sets;
procedure Autocommit is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package ARS renames AdaBase.Results.Sets;
package CT renames CommonText;
insX : constant String := "INSERT INTO fruits (id, f... |
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Ada.Numerics.Elementary_Functions;
use Ada.Numerics.Elementary_Functions;
procedure calcrms is
type float_arr is array(1..10) of Float;
function rms(nums : float_arr) return Float is
sum : Float := 0.0;
begin
for p in nums'Range loop
sum := sum + nums(p)*... |
-- -----------------------------------------------------------------------------
-- smk, the smart make (http://lionel.draghi.free.fr/smk/)
-- © 2018, 2019 Lionel Draghi <lionel.draghi@free.fr>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- ... |
generic
Modulo : Integer;
type T_Element is private;
-- Un registre est une table de hachage.
package Registre is
type T_Registre is limited private;
Cle_Absente_Exception : exception;
-- Renvoie vrai si le registre est entièrement vide.
function Est_Vide (Registre : T_Registre) return Boolean;
... |
package body Bits is
function Bit_Count (Bitmap : Unsigned_32) return Natural is
Count : Unsigned_32 := Bitmap;
begin
Count := Count - ((Shift_Right (Count, 1)) and 16#55555555#);
Count := (Count and 16#33333333#) + (Shift_Right (Count, 2) and 16#33333333#);
Count := (Count +... |
with System.Formatting.Literals.Float;
with System.Value_Errors;
package body System.Val_Real is
function Value_Real (Str : String) return Long_Long_Float is
Last : Natural := Str'First - 1;
Result : Long_Long_Float;
Error : Boolean;
begin
Formatting.Literals.Float.Get_Literal (Str, Last,... |
with OpenGL.Thin;
package body OpenGL.View is
--
-- Viewport specification.
--
procedure Depth_Range
(Near : in OpenGL.Types.Clamped_Double_t;
Far : in OpenGL.Types.Clamped_Double_t) is
begin
Thin.Depth_Range
(Near_Value => Thin.Double_t (Near),
Far_Value => Thin.Double_t (Far))... |
--
-- Jan & Uwe R. Zimmer, Australia, July 2011
--
with Vectors_xD_I; pragma Elaborate_All (Vectors_xD_I);
package Vectors_2D_P is
type xy_Coordinates is (x, y);
package Vectors_2Di is new Vectors_xD_I (Positive, xy_Coordinates);
subtype Vector_2D_P is Vectors_2Di.Vector_xD_I;
Zero_Vector_2D_P : const... |
pragma License (Restricted);
--
-- Copyright (C) 2020 Jesper Quorning All Rights Reserved.
--
-- 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... |
package body UxAS.Comms.Transport.Receiver is
------------------------------
-- Add_Subscription_Address --
------------------------------
procedure Add_Subscription_Address
(This : in out Transport_Receiver_Base;
Address : String;
Result : out Boolean)
is
Target : constant S... |
-- --
-- package Copyright (c) Francois Fabien --
-- AdaPcre --
-- Interface --
-- ... |
with Ada.Characters.Latin_1;
with GNAT.Spitbol;
with Bitmaps.RGB;
package body Bitmaps.IO is
procedure Write_PPM_P6
(To : not null access Ada.Streams.Root_Stream_Type'Class;
Source : in Bitmaps.RGB.Image)
is
begin
-- Write P6 PPM type marker.
String'Write (To, "P6");
Charac... |
with Ada.Text_IO;
with GMP;
with MPFR;
with MPC;
procedure versions is
begin
Ada.Text_IO.Put_Line ("GMP: " & GMP.Version);
Ada.Text_IO.Put_Line ("MPFR: " & MPFR.Version);
Ada.Text_IO.Put_Line ("MPC: " & MPC.Version);
end versions;
|
-- Project: MART - Modular Airborne Real-Time Testbed
-- System: Emergency Recovery System
-- Authors: Markus Neumair (Original C-Code)
-- Emanuel Regnath (emanuel.regnath@tum.de) (Ada Port)
--
-- Module Description:
-- @summary Top-level driver for the Barometer HMC5883L-01BA03
package HMC5883L with SPARK_M... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Storage_Elements;
package System.Tasking is
pragma Preelaborate;
-- required for local tagged types by compiler (s-taskin.ads)
subtype Master_Level is Integer;
subtype Master_ID is Master_Level;
Foreign_Task_Level ... |
-- SPDX-FileCopyrightText: 2010-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Characters.Wide_Wide_Latin_1;
package body WebIDL.String_Sources is
--------------
-- Get_Next --
--------------
overriding fun... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with Loop_Optimization7_Pkg; use Loop_Optimization7_Pkg;
package Loop_Optimization7 is
type Arr is array (1..8) of Rec;
function Conv (A : Arr) return Arr;
end Loop_Optimization7;
|
generic
HSE_Value : HSE_Range := 8_000_000;
PLL_Source : PLL_Source_Type := HSI;
SYSCLK_Source : SYSCLK_Source_Type := HSI;
RTC_Source : RTC_Source_Type := LSI;
PLL_Prediv : PLL_Prediv_Range := 1;
PLL_Mul : PLL_Mul_Range := 1;
AHB_Prescaler : AHB_Prescaler_Type := DIV1;
APB_Prescaler : APB_Pr... |
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- GNAT.Sockets.Connection_State_Machine. Luebeck --
-- Terminated_Strings Winter, 2012 --
-- Implementation ... |
with
physics.Object;
package body gel.any_Joint
is
use Math;
---------
-- Forge
--
procedure define (Self : access Item; in_Space : in std_physics.Space.view;
Sprite_A, Sprite_B : access gel.Sprite.item'Class;
... |
-- 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... |
-- class package: ${self.name}
-- description: self.description
.if ( "" != domain_types_package_name )
with ${domain_types_package_name};
.end if
package ${root_package.name}.${domain_package.name}.${self.name} is
--************** Object ${self.long_name} Information **************
Object_String : String := "${... |
with STM32.Device;
with STM32.CORDIC.Polling;
package body Inverter_PWM is
-----------------------
-- Initialize_CORDIC --
-----------------------
procedure Initialize_CORDIC is
use STM32.Device;
begin
Enable_Clock (CORDIC_Unit);
Configure_CORDIC_Coprocessor
(CORDIC_Unit,
... |
package body ACO.Utils.Generic_Pubsub is
function Nof_Subscribers
(This : in out Pub)
return Natural
is
S : ACO.Utils.Scope_Locks.Scope_Lock (This.Mutex'Access);
pragma Unreferenced (S);
begin
return This.Subscribers.Length;
end Nof_Subscribers;
function Get_Subscribers
... |
generic
type Float_type is digits <>;
slot_Count : standard.Positive;
package cached_Trigonometry
--
-- Caches trig functions for speed at the cost of precision.
--
is
pragma Optimize (Time);
function Cos (Angle : in Float_type) return Float_type;
function Sin (Angle : in Float_type) return Float_ty... |
-- { dg-do link }
-- { dg-options "-gnat12" }
with Constant4_Pkg; use Constant4_Pkg;
procedure Constant4 is
Sum : Counter := 0;
begin
for Count of Steals loop
Sum := Sum + Count;
end loop;
end;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- C43106A.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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package body vole_lex_io is
-- gets input and stuffs it into 'buf'. number of characters read, or YY_NULL,
-- is returned in 'result'.
procedure YY_INPUT(buf: out unbounded_character_array; result: out integer; max_size: in integer) is
c : character;
i : integer := 1;
loc : integer := buf'first;
begin
... |
procedure Step_Up is
begin
while not Step loop
Step_Up;
end loop;
end Step_Up;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Conversions; use Ada.Characters.Conversions;
with Langkit_Support.Text;
package body Offmt_Lib.Detection is
--------------------------
-- Check_Defmt_Log_Call --
--------------------------
function Check_Defmt_Log_Call (Node : LAL.Call_Stmt'Class;
... |
with Ada.Text_Io; use Ada.Text_Io;
procedure Exceptions_From_Nested_Calls is
U0 : exception;
U1 : exception;
Baz_Count : Natural := 0;
procedure Baz is
begin
Baz_Count := Baz_Count + 1;
if Baz_Count = 1 then
raise U0;
else
raise U1;
end if;
end Baz;
proced... |
-- { dg-do compile }
-- { dg-options "-O" }
package body Array29 is
procedure Copy (Src : in Matrix; Dst : out Matrix) is
begin
for I in Src'Range (1) loop
for J in Src'Range (2) loop
Dst (I, J) := Src (I, J);
end loop;
end loop;
end;
procedure Proc is
N : constant := 2;
F... |
package body gel.Dolly.simple
is
overriding
procedure define (Self : in out Item)
is
begin
null;
end define;
overriding
procedure destroy (Self : in out Item)
is
begin
null;
end destroy;
--------------
-- Operations
--
overriding
procedure freshen (Self :... |
-- { dg-do compile }
-- { dg-options "-gnatI" }
package gnati is
type j is range 1 .. 50;
for j'size use 1;
type n is new integer;
for n'alignment use -99;
type e is (a, b);
for e use (1, 1);
type r is record x : integer; end record;
for r use record x at 0 range 0 .. 0; end record;
end gnati... |
with
aIDE.Editor,
-- AdaM.Source,
AdaM.Entity,
Gtk.Widget,
Gtk.Button,
Gtk.Window;
private
with
Gtk.Frame;
package aIDE.Palette.of_source_entities
is
type Item is new Palette.item with private;
type View is access all Item'Class;
-- Forge
--
function to_source_... |
--
-- Simple tests of Extended_Real. Search for catastrophic
-- errors or portability problems.
--
with Extended_Real;
with text_io; use text_io;
procedure e_real_tst_1 is
type Real is digits 15;
package Extend is new Extended_Real (Real);
use Extend;
package rio is new Text_IO.float_io(Real);
use rio;
... |
with HK_Data; use HK_Data;
with TTC_Data; use TTC_Data;
package TTC is
procedure Receive (Data : out Sensor_Reading);
function Next_TM return TM_Message;
end TTC;
|
with ACO.OD;
with ACO.States;
private with ACO.Events;
private with ACO.Log;
private with Interfaces;
package ACO.Protocols.Network_Management is
NMT_CAN_Id : constant ACO.Messages.Id_Type := 0;
type NMT
(Id : ACO.Messages.Node_Nr;
Od : not null access ACO.OD.Object_Dictionary'Class)
is abstra... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- wiki -- Ada Wiki Engine
-- Copyright (C) 2015, 2016, 2020, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exc... |
-- Shoot'n'loot
-- Copyright (c) 2020 Fabien Chouteau
with HAL; use HAL;
with GESTE;
with GESTE.Tile_Bank;
with GESTE.Sprite.Animated;
with GESTE_Config;
with GESTE.Maths_Types; use GESTE.Maths_Types;
with GESTE.Physics;
with Game_Assets;
with Game_Assets.Tileset;
with Game_Assets.Misc_Objects;
with PyGamer.Scree... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.