content stringlengths 23 1.05M |
|---|
-- Copyright (c) 2013, 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:
--
-- * Redistributions of source code must retain the above copyright notice, this
-- lis... |
with NPC_PC; use NPC_PC;
package Enemy_BST is
-------------------------------
-- Name: Jon Spohn
-- David Rogina
-- Enemy Package Specification
-------------------------------
type EnemyTree is private;
--Connect enemy node to right of parent
procedure ConnectRight (T : IN OUT Enemy... |
with Ada.IO_Exceptions;
private with Ada.Finalization;
package Web.Lock_Files is
function Lock (
Name : String;
Force : Duration := 0.0;
Timeout : Duration := 3.0;
Retry_Interval : Duration := 1.0;
Forced : access Boolean := null)
return Boolean;
-- raise Lock_Error when failure
procedure Lock (
Na... |
------------------------------------------------------------------------------
-- --
-- Internet Protocol Suite Package --
-- --
-- -... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.JSON.Objects;
with League.Strings;
with League.String_Vectors;
with League.Stream_Element_Vectors;
with League.Calendars;
package ACME is
... |
type Priority is range 1..4;
type Infix is record
Precedence : Priority;
Expression : Unbounded_String;
end record;
package Expression_Stack is new Generic_Stack (Infix);
use Expression_Stack;
function Convert (RPN : String) return String is
Arguments : Stack;
procedure Pop
... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 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... |
procedure For_Loop_Statement is
begin
for Index in Boolean loop
null;
end loop;
end For_Loop_Statement;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
procedure P is begin x := 0; end Q;
begin P(0); end;
|
-- Mojang Session API
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- OpenAPI spec version: 2020_06_05
--
--
-- NOTE: This package is auto generated by the swagger code generator 3.3.4.
-- https://openapi-generator.tech
-- Do not edit the class... |
with Ada.Text_IO, Ada.Strings.Equal_Case_Insensitive;
procedure String_Compare is
procedure Print_Comparison (A, B: String) is
use Ada.Text_IO;
Function eq(Left, Right : String) return Boolean
renames Ada.Strings.Equal_Case_Insensitive;
begin
Put_Line
( """" & A & """ and """ &... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Img_LLD is
pragma Pure;
-- required for Fixed'Image by compiler (s-imglld.ads)
procedure Image_Long_Long_Decimal (
V : Long_Long_Integer;
S : in out String;
P : out Natural;
Scale : Integer);
e... |
-- GIF Decoder by André van Splunter
--
-- A GIF stream is made of several "blocks".
-- The image itself is contained in an Image Descriptor block.
--
with GID.Buffering, GID.Color_tables;
with Ada.Exceptions, Ada.Text_IO;
package body GID.Decoding_GIF is
----------
-- Load --
----------
p... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Strings.Hash;
with Ada.Unchecked_Deallocation;
package body Yaml.Text_Set is
use type Ada.Containers.Hash_Type;
function Non_Zero_Hash (S : Standard.String)
... |
-------------------------------------------------------------------------------
-- Copyright (c) 2019, Daniel King
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions... |
with Generic_Heapsort;
with Ada.Text_Io; use Ada.Text_Io;
procedure Test_Generic_Heapsort is
type Days is (Sun, Mon, Tue, Wed, Thu, Fri, Sat);
type Days_Col is array(Days range <>) of Natural;
procedure Sort is new Generic_Heapsort(Natural, Days, Days_Col);
Week : Days_Col := (5, 2, 7, 3, 4, 9, 1);
begin
... |
with
AdaM.a_Type.enumeration_literal,
gtk.Widget;
private
with
gtk.gEntry,
gtk.Box,
gtk.Button;
limited
with
adam.a_Type.enumeration_type;
package aIDE.Editor.of_enumeration_literal
is
type Item is new Editor.item with private;
type View is access all Item'Class;
type enume... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
private package Apsepp.Scope_Bound_Locks.Private_Handler is
----------------------------------------------------------------------------
protected Protected_Handler is
procedure Do_Lock (Lock ... |
with Ada.Text_IO;
use Ada.Text_IO;
with Dates;
use Dates;
procedure Exemple_Dates_Erreurs is
Une_Date : T_Date;
Mois_Suivant : T_Mois;
Autre_Date : T_Date;
begin
-- Initialiser une date
Initialiser (Une_Date, 1, OCTOBRE, 2018);
-- L'afficher
Afficher (Une_Date);
New_Line;
-- Affi... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Definitions;
with Program.Elements.Expressions;
with Program.Lexical_Elements;
package Program.Elements... |
with Ada.Streams;
with Ada.Text_IO;
with iconv.Strings;
procedure Test_Strings is
use type Ada.Streams.Stream_Element_Array;
L1_A : constant String := "A";
U16BE_A : constant Ada.Streams.Stream_Element_Array (1 .. 2) := (0, 16#41#);
U16BE_JAPANEASE_A : constant Ada.Streams.Stream_Element_Array (1 .. 2) :=
(16#30#... |
-- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Author: Emanuel Regnath (emanuel.regnath@tum.de)
with Config.Software;
with HIL.UART;
with HIL.Devices;
-- @summary Command Line Interface for user interactions
package body Console wit... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
private package Ada_Pretty.Declarations is
type Package_Body is new Node with private;
function New_Package_Body
(Name : ... |
------------------------------------------------------------------------
-- Copyright (C) 2004-2020 by <ada.rocks@jlfencey.com> --
-- --
-- This work is free. You can redistribute it and/or modify it under --
-- the terms of the Do ... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Exceptions;
with Ada.Strings.Fixed;
with Ada.Unchecked_Deallocation;
with Yaml.Destination.C_Handler;
with Yaml.Destination.C_String;
with Yaml.Source;
with Yaml.Tags;
with Lexer.Source.C_Han... |
pragma Task_Dispatching_Policy(FIFO_Within_Priorities);
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Real_Time.Timing_Events; use Ada.Real_Time.Timing_Events;
with Example1; use Example1;
procedure Firm is
task type Periodic_Firm is
pragma Priority(5);
end Periodic_Fir... |
with Ada.Strings.Bounded;
with Ada.Strings.Fixed;
with Ada.Containers.Vectors;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Regexp_Readers.Generic_Readers;
--
-- This package hierarchy provides resources to operate with the description
-- of research projects (mostly EU-style, but it can be... |
-- { dg-do compile }
-- { dg-options "-O3" }
with Opt3_Pkg; use Opt3_Pkg;
procedure Opt3 is
type Buffer_Type is array (Integer range <> ) of Short_Integer;
B : Buffer_Type (1 .. 256) := (others => 0);
begin
F (B(1));
end;
|
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up and tear down the t... |
-- This file is generated by SWIG. Do *not* modify by hand.
--
with Interfaces.C.Strings;
package LLVM_link_time_Optimizer.Binding is
LTO_H : constant := 1;
LTO_API_VERSION : constant := 3;
function lto_get_version return Interfaces.C.Strings.chars_ptr;
function lto_get_error_message return... |
package impact.d2.orbs.Joint.pulley
--
--
--
is
--
-- #ifndef B2_PULLEY_JOINT_H
-- #define B2_PULLEY_JOINT_H
--
-- #include <Box2D/Dynamics/Joints/b2Joint.h>
--
-- const float32 b2_minPulleyLength = 2.0f;
--
-- /// Pulley joint definition. This requires two ground anchors,
-- /// two dynamic body anchor points, ... |
with
lace.make_Subject,
lace.make_Observer,
lace.Any,
lace.Subject,
lace.Observer;
private
with
ada.Strings.unbounded;
package lace.Subject_and_instant_Observer
--
-- Provides a concrete type for a combined event Subject and an instant Observer.
--
is
type Item is limited new lace.An... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with gmp_c.Pointers;
with gmp_c.a_a_gmp_randstate_struct;
with gmp_c.gmp_randstate_t;
with gmp_c.mp_ptr;
with gmp_c.mp_srcptr;
with gmp_c.mpf_ptr;
with gmp_c.mpf_srcptr;
with gmp_c.mpf_t;
with gmp_c.mpq_ptr;
with gmp_c.mpq_srcptr;
with gmp_c.mpz_ptr;... |
------------------------------------------------------------------------------
-- --
-- GNAT SYSTEM UTILITIES --
-- --
-- ... |
-- Taken from #2382 submitted by @JulienPivard
-- @summary
-- Implémentation par une tâche.
-- @description
-- Implémentation par une tache de la classe synchronisé.
-- @group Version tâche
--
-- package Carte_P.Tasche_P
package Input
with
Pure => False,
Preelaborate => False,
El... |
with LATIN_FILE_NAMES; use LATIN_FILE_NAMES;
with STRINGS_PACKAGE; use STRINGS_PACKAGE;
with CONFIG;
with PREFACE;
package body WORD_SUPPORT_PACKAGE is
function LEN(S : STRING) return INTEGER is
begin
return TRIM(S)'LENGTH;
end LEN;
function EFF_PART(PART : PART_OF_SPEECH_TYPE) retu... |
-- { dg-do compile }
package body Pak is
pragma Suppress (Discriminant_Check);
-- Suppress discriminant check to prevent the assignment from using
-- the predefined primitive _assign.
procedure Initialize (X : in out T) is begin null; end Initialize;
procedure Finalize (X : in out T) is begin null... |
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure Main is
Target: constant Integer := 2020;
Puzzle_Input: constant array (1 .. 200) of Integer := (
2000, 50, 1984, 1600, 1736, 1572, 2010, 1559, 1999, 1764,
1808, 1745, 1343, 1495, 1860, 1977, 1981, ... |
with
lace.Event.Logger.text,
ada.unchecked_Deallocation,
system.RPC;
package body lace.Event.utility
is
--------------
-- Event Kinds
--
function to_Kind (From : in ada.Tags.Tag) return lace.Event.Kind
is
begin
return event.Kind (ada.Tags.external_Tag (From));
end to_Kind;
... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure DePermute is
type U64 is mod 2**64;
type Num is range 0 .. 20;
type NumList is array (Natural range <>) of Num;
type PtNumList is access all NumList;
package IO is new Ada.Text_IO.Integer_IO (Num);
package UIO is new Ada.Text_IO.Modular_IO (U64);
functi... |
------------------------------------------------------------------------------
-- G P S --
-- --
-- Copyright (C) 2004-2016, AdaCore --
-- ... |
-- Abstract:
--
-- see spec
--
-- Copyright (C) 1998, 2003, 2009, 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- SAL 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, or (at your op... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Drone is
-- Create program that handles drone.
Choice: Character;
Altitude: Integer;
Start: Integer;
begin
-- Initialize variables.
Altitude := 0;
Start := 0;
-- Print menu for the first time.
Put_Line("Current Altitude :" &Int... |
-- C85011A.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... |
-- Standard Ada library specification
-- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
... |
with
any_Math.any_Random;
package float_Math.Random is new float_Math.any_Random;
|
--
-- 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 GNAT.Command_Line;
with Options;
pa... |
pragma Ada_2012;
package body DDS.Request_Reply.Tests.Simple.Server is
------------------------
-- Compute_And_Replie --
------------------------
task body Ref2 is
Octets_Data : DDS.Octets;
String_Data : DDS.String;
L_Replier : DDS.Request_Reply.Replier.Ref_Access;
L_Id : D... |
with Ada.Unchecked_Deallocation;
with Interfaces;
with kv.avm.Transactions;
package kv.avm.Clients is
type Client_Interface is interface;
type Client_Access is access all Client_Interface'CLASS;
type Status_Type is (Uninitialized, Closed, Running, Transacting, Failed);
subtype Open_Status_Type is Status... |
package body Base with SPARK_Mode is
subtype Base58Digit is Integer range 0 .. 57;
type Alpha_Type is array (Base58Digit) of Character;
Alphabet : constant Alpha_Type :=
"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
------------
-- Encode --
------------
function Encode (S :... |
-----------------------------------------------------------------------
-- awa-counters-modules -- Module counters
-- Copyright (C) 2015 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 excep... |
-- Simple_Example
-- A simple example of using the Ada 2012 interface to Lua
-- Copyright (c) 2015, James Humphry - see LICENSE for terms
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Long_Float_Text_IO; use Ada.Long_Float_Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Lua; use Lua;
with Lua.Util; us... |
-- Copyright 2010-2016 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.
--
-- ... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp.Test_Event_Class.Generic_Timestamp_Mixin is
----------------------------------------------------------------------------
overriding
procedure Set (Obj : in out Child_W_Timestamp; Dat... |
[VERSION] 2.0
[COSIMULATION] False
[INTERPOLATION] True
[SOLVERTYPE] Transient
[DESCRIPTION]
[NUMBEROFPORTS] 0
[PARAMETERS] 0
|
-----------------------------------------------------------------------
-- ado-configs -- Database connection configuration
-- Copyright (C) 2010, 2011, 2012, 2016, 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "L... |
-- This file is generated by SWIG. Do *not* modify by hand.
--
with llvm;
with Interfaces.C.Strings;
package LLVM_bit_Writer.Binding is
function LLVMWriteBitcodeToFileHandle
(M : in llvm.LLVMModuleRef;
Handle : in Interfaces.C.int)
return Interfaces.C.int;
function LLVMWriteBitcodeToF... |
-- CC1104C.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... |
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2010, Alexander Senier
-- Copyright (C) 2010, secunet Security Networks AG
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or withou... |
-- { dg-do compile }
-- { dg-options "-gnat12 -gnatct" }
with Ada.Containers.Vectors;
with Limited_With4_Pkg;
package Limited_With4 is
type Object is tagged private;
type Object_Ref is access all Object;
type Class_Ref is access all Object'Class;
package Vec is new Ada.Containers.Vectors
(Positive,... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Greet is
begin
-- Print "Hello, World!" to the screen
Put_line ("Hello, World!");
Ada.Text_IO.Put_line ("Hello, world (two)!");
end Greet; |
function Median (Picture : Image; Radius : Positive) return Image is
type Extended_Luminance is range 0..10_000_000;
type VRGB is record
Color : Pixel;
Value : Luminance;
end record;
Width : constant Positive := 2*Radius*(Radius+1);
type Window is array (-Width..Width) of VRGB;
Sorted : Wi... |
-- As prototyped in the Generic_Real_Arrays specification:
-- function Unit_Matrix (Order : Positive; First_1, First_2 : Integer := 1) return Real_Matrix;
-- For the task:
mat : Real_Matrix := Unit_Matrix(5);
|
-- @TODO: do we need to create a seperate spec file which imports these as stated here:
-- https://gcc.gnu.org/onlinedocs/gcc-4.1.2/gnat_ugn_unw/Creating-a-Spec-for-Ada-DLLs.html#Creating-a-Spec-for-Ada-DLLs
package my_lib is
procedure Do_Stuff;
-- procedure Initialize_API;
-- procedure Finalize_API;
-- This sh... |
with Rejuvenation.Node_Locations; use Rejuvenation.Node_Locations;
package Rejuvenation.Utils is
-- Raw signature --------
function Raw_Signature
(Node : Ada_Node'Class;
Before : Node_Location := No_Trivia;
After : Node_Location := No_Trivia)
return String;
-- Return the original ... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with logger;
use logger;
package body text_file is
procedure write_string_to_file(file_path, content : string) is
file : file_type;
begin
begin
debug("Ouverture du fichier " & file_path);
-- Ouverture du fichier
open(file, out_file, file_path);
except... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- { dg-do run }
with Pack18_Pkg; use Pack18_Pkg;
procedure Pack18 is
use Pack18_Pkg.Attributes_Tables;
Table : Instance;
begin
Init (Table);
Set_Last (Table, 1);
Table.Table (Last (Table)).N := 0;
end;
|
with Big_Integers; use Big_Integers;
package Types with
SPARK_Mode
is
-- Index types used in implementations
type Extended_Index_Type is range - 1 .. 18;
subtype Product_Index_Type is Extended_Index_Type range 0 .. 18;
subtype Index_Type is Extended_Index_Type range 0 .. 9;
-- Array types used in... |
------------------------------------------------------------------------------
-- Copyright (c) 2013-2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
pragma Style_Checks (Off);
with CSS.Analysis.Parser.Lexer_dfa; use CSS.Analysis.Parser.Lexer_dfa;
package body CSS.Analysis.Parser.Lexer_dfa is
-- Warning: This file is automatically generated by AFLEX.
-- It is useless to modify it. Change the ".Y" & ".L" files instead.
-- Nov 2002. Fixed in... |
pragma Check_Policy (Trace => Disable);
-- with Ada;
with System.Shared_Locking;
-- with System.Storage_Elements.Formatting;
package body System.Pool_Size is
type Unaligned_Storage_Offset is new Storage_Elements.Storage_Offset;
for Unaligned_Storage_Offset'Alignment use 1;
subtype Positive_Storage_Count is... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
M:main
F:G$main$0_0$0({2}DF,SV:S),C,0,0,0,0,0
S:G$test$0_0$0({1}SC:U),E,0,0
S:G$main$0_0$0({2}DF,SV:S),C,0,0
|
-- Institution: Technische Universitaet Muenchen
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
-- Martin Becker (becker@rcs.ei.tum.de)
--
-- @summary Servo Actuator frontend
with Units; use Units;
with Config; use Co... |
-----------------------------------------------------------------------
-- wiki-plugins-variables -- Variables plugin
-- Copyright (C) 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 this file ex... |
with Ada.Text_IO; use Ada.Text_IO;
with OLED_SH1106; use OLED_SH1106;
with Interfaces.C; use Interfaces.C;
with Bitmap_Graphics; use Bitmap_Graphics;
procedure AdaOLED is
Center : Point := (64, 32);
P : Point := (10, 10);
Q : Point := (100, 40);
begin
Put_Line ("OLED Display Driver Test");
if Start_Driv... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package Opt46 is
type Session_Type is limited private;
procedure Close (Session : Session_Type);
private
type Session_Data;
type Session_Data_Access is access Session_Data;
type Session_Type is record
Data : Session_Data_Access;
end record;
end Opt46;
|
package Problem_68 is
-- Consider the following "magic" 3-gon ring, filled with the numbers 1 to 6, and each line adding to nine.
-- 4
-- 3
-- 1 2 6
-- 5
--
-- Working clockwise, and starting from the group of three with the numerically lowest external
-- node (4,3,2 in this example), each ... |
-- REST API Validation
-- API to validate
-- ------------ EDIT NOTE ------------
-- This file was generated with swagger-codegen. You can modify it to implement
-- the server. After you modify this file, you should add the following line
-- to the .swagger-codegen-ignore file:
--
-- src/testapi-servers.ads
--
... |
-- { dg-do run }
-- { dg-options "-gnat12" }
procedure In_Out_Parameter3 is
type Arr is array (1..16) of Integer;
type Rec1 is record
A : Arr;
B : Boolean;
end record;
type Rec2 is record
R : Rec1;
end record;
pragma Pack (Rec2);
function F (I : In Out Rec1) return Boolean is
A : Inte... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package Slim.Menu_Commands is
type Menu_Command is limited interface;
type Menu_Command_Access is access all Menu_Command'Class... |
--------------------------------------------------------------------------------------------------------------------
-- 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... |
--------------------------------------------------------------------------
-- ASnip Source Code Decorator
-- Copyright (C) 2006, Georg Bauhaus
--
-- 1. Permission is hereby granted to use, copy, modify and/or distribute
-- this package, provided that:
-- * copyright notices are retained unchanged,
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
procedure Apsepp.Test_Node_Class.Generic_Assert (Cond : Boolean;
Message : String := "") is
begin
Assert (Test_Node_Tag, Cond, Message);
end;
|
with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure Discrim1 is
type SQUARE is array(INTEGER range <>,
INTEGER range <>) of INTEGER;
type LINEAR_TYPE is array(INTEGER range <>) of POSITIVE;
type STUFF(List_Size : POSITIVE) is
record
... |
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.DMAC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- DMAC_CTRL_LVLEN array
type DMAC_CTRL_... |
--
-- It is not always easy to mix standard input/output and traditional files
-- This package provides a type that can work transparently with both.
-- The interface is very similar to the interface of Text_IO.
--
with Ada.Text_IO;
use Ada;
package Utilities.Hybrid_Files is
use type Text_IO.File_Mode;
type Hybr... |
------------------------------------------------------------------------------
-- Copyright (c) 2016, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.RNG; use STM32_SVD.RNG;
package body STM32.RNG is
----------------------
-- Enable_RNG_Clock --
----------------------
procedure Enable_RNG_Clock is
begin
RCC_Periph.AHB2ENR.RNGEN := True;
end Enable_RNG_Clock;
----------------
-- E... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Screen_Interface; use Screen_Interface;
with Giza.GUI; use Giza.GUI;
with Giza.Context;
with Clock_Window;
pragma Warnings (Off, "*not referenced");
with Utils;
pragma Warnings (On, "*not referenced");
procedure GUI_Test is
begin
Screen_Interface.Initialize;
Giza.GUI.Set_Context (new Giza.Context.Instanc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.