content stringlengths 23 1.05M |
|---|
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Containers.Vectors;
with Ada.Numerics.Discrete_Random;
procedure Maze (Size : Integer) is
-- A grid is a 2d array of cells. A cell can either be Fresh (not
-- inspected), Front (Inspected but not set), Clear (inspec... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Auteur:
-- Gérer un stock de matériel informatique.
--
package body Stocks_Materiel is
-- Helpers
function Indice(Stock: in T_Stock; Numero_Serie: in Integer) return Integer is
begin
for J in 1..St... |
--------------------------------------------
-- --
-- PACKAGE GAME - PARTIE ADA --
-- --
-- GAME.ADS --
-- --
-- Gestion des outils de base --
-- ... |
-- { dg-do run }
with Aggr21_Pkg; use Aggr21_Pkg;
procedure Aggr21 is
V : Rec;
begin
V.A := 12;
V.S (1 .. 10) := "Hello init";
V.N := 123;
Init (V);
-- Probably not reliable, but the compiler is supposed not to modify V.S
pragma Assert (V.s (1 .. 5) = "Hello");
end;
|
------------------------------------------------------------------------------
-- --
-- Modular Hash Infrastructure --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with AdaBase.Results.Converters;
package body AdaBase.Results.Field is
package ARC renames AdaBase.Results.Converters;
-- [1] For several conversions, the string equivalents in both ASCII
-- an... |
-- 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... |
package body Ada.Containers.Composites is
function LE (Left, Right : Element_Type) return Boolean is
begin
return not (Right < Left);
end LE;
function GT (Left, Right : Element_Type) return Boolean is
begin
return Right < Left;
end GT;
function GE (Left, Right : Element_Type) return ... |
with RASCAL.ToolboxQuit; use RASCAL.ToolboxQuit;
with RASCAL.TaskManager; use RASCAL.TaskManager;
with RASCAL.OS; use RASCAL.OS;
with RASCAL.Bugz; use RASCAL.Bugz;
package Controller_Bugz is
type MEL_Message_Bugz_Query is new AMEL_Message_Bugz_Query with null record;
t... |
-- { dg-do compile }
package body overriding_ops is
task body Light_Programmer is
begin
accept Set_Name (Name : Name_Type);
end Light_Programmer;
protected body Light is
procedure Set_Name (Name : Name_Type) is
begin
L_Name := Name;
end Set_Name;
end Light;
end overridi... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
with GL.Enums.Getter;
package body GL.Blending is
procedure Set_Blend_Func (Src_Factor, Dst_Factor : Blend_Factor) is
begin
API.Blend_Func (Src_Factor, Dst_Factor);
Rais... |
with Ada.Command_Line, Ada.Text_IO;
procedure Command_Name is
begin
Ada.Text_IO.Put_Line(Ada.Command_Line.Command_Name);
end Command_Name;
|
-- { dg-do compile }
with Aggr4_Pkg; use Aggr4_Pkg;
package Aggr4 is
C : constant Rec3 := (Data => (D => One, Value => Zero));
end Aggr4;
|
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Yaml.Dom.Vectors;
with Yaml.Source;
with Yaml.Stream_Concept;
package Yaml.Dom.Loading is
-- equivalent to the composition of the "Parse" and "Compose" steps in the
-- YAML spec
funct... |
-- { dg-do run }
-- { dg-options "-O3" }
-- PR tree-optimization/71083
with Loop_Optimization23_Pkg;
use Loop_Optimization23_Pkg;
procedure Loop_Optimization23 is
Test : ArrayOfStructB;
begin
Test (0).b.b := 9999;
Foo (Test);
if Test (100).b.b /= 9999 then
raise Program_Error;
end if;
end;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Adobe Experience Manager (AEM) API
-- Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
--
-- The version of the OpenAPI document: 3.5.0_pre.0
-- Contact: opensource@shinesolutions.com
--
-- NOTE: This package is auto generated by OpenAPI-Generator 5.2.1.
-- https://openapi-generat... |
msg : string := "hello world";
empty : string := ""; -- an empty string
|
-- { dg-do compile }
-- { dg-options "-flto" { target lto } }
with Ada.Streams; use Ada.Streams;
package body Lto11 is
procedure Write
(S : not null access Root_Stream_Type'Class;
V : Vector)
is
subtype M_SEA is Stream_Element_Array (1 .. V'Size / Stream_Element'Size);
Bytes : M_SEA;
... |
-- Copyright 2019 Simon Symeonidis (psyomn)
--
-- 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/LICENSE-2.0
--
-- Unless required by applicable la... |
pragma License (Unrestricted);
package Ada is
pragma Pure;
-- extended
-- This package creates usable debug output.
-- It is placed in the package Ada directly,
-- therefore it does not need to write any additional "with" clause.
package Debug is
function File return String
with ... |
pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with Interfaces.C; use Interfaces.C;
package svm_defines_h is
type arm_ml_kernel_type is
(ARM_ML_KERNEL_LINEAR,
ARM_ML_KERNEL_POLYNOMIAL,
ARM_ML_KERNEL_RBF,
ARM_ML_KERNEL_SIGMOID)
with Convention => C; -- ../CMSIS_5/CMS... |
function Compute(x, y: IN Integer) return Integer is
Result : Integer;
I : Integer;
J : Integer;
begin
Result := 0;
I := X;
Outer:
loop
J := Y;
while J > X loop
Result := Result + 1;
exit Outer when I mod J = 2;
J := J-1;
end loop;
I := I+1;
en... |
with Ada.Text_IO;
procedure Main is
package Float_IO is new Ada.Text_IO.Float_IO (Float);
function Van_Der_Corput (N : Natural; Base : Positive := 2) return Float is
Value : Natural := N;
Result : Float := 0.0;
Exponent : Positive := 1;
begin
while Value > 0 loop
Resu... |
pragma License (Unrestricted);
-- extended unit
with Ada.Environment_Encoding.Generic_Strings;
package Ada.Environment_Encoding.Wide_Wide_Strings is
new Generic_Strings (
Wide_Wide_Character,
Wide_Wide_String);
-- Encoding / decoding between Wide_Wide_String and various encodings.
pragma Preelaborate (... |
-- { dg-do compile }
-- { dg-options "-O -gnatp -fdump-tree-optimized" }
package body Array7 is
package body Range_Subtype is
function Get_Arr (Nbr : My_Range) return Arr_Acc is
begin
return new Arr (1 .. Nbr);
end;
end;
package body Range_Type is
function Get_Arr (Nbr : My_... |
-- { dg-do compile }
with anon1;
procedure anon2 is
begin
if anon1.F /= null then
null;
end if;
end anon2;
|
pragma License (Unrestricted);
-- extended unit
package Ada.References is
-- Returning access values to sliced arrays from functions.
pragma Pure;
-- magic to carry out ARRAY (F .. L)'Access to out of subprogram
generic
type Index_Type is range <>;
type Element_Type is limited private;
... |
pragma License (Unrestricted);
-- Ada 2012
-- with Ada.Interrupts;
package Ada.Execution_Time.Interrupts is
-- function Clock (Interrupt : Ada.Interrupts.Interrupt_Id) return CPU_Time;
-- function Supported (Interrupt : Ada.Interrupts.Interrupt_Id)
-- return Boolean;
end Ada.Execution_Time.Interrupts;
|
with Ada.Containers.Ordered_Maps;
with EU_Projects.Nodes.Partners;
package EU_Projects.Efforts is
use type Nodes.Partners.Partner_Label;
type Person_Months is new Natural;
package Effort_Maps is
new Ada.Containers.Ordered_Maps (Key_Type => Nodes.Partners.Partner_Label,
... |
-- C38104A.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 --
-- --
-- ... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Opt41_Pkg is
type Enum is (One, Two, Three, Four, Five, Six);
type Rec (D : Enum) is record
case D is
when One =>
I : Integer;
when Two | Five | Six =>
S : Unbounded_String;
c... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with EU_Projects.Nodes;
with EU_Projects.Times.Time_Expressions;
with Eu_Projects.Event_Names;
with EU_Projects.Node_Tables;
package Eu_Projects.Nodes.Timed_Nodes.Project_Infos is
type Project_Info is new Timed_Node with private;
type Info_Access is access all Project_Info;
function Create (Label : N... |
-- Copyright 2017-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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
-- (a... |
-- 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.
... |
-- This spec has been automatically generated from msp430g2553.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- USCI_B0 I2C Mode
package MSP430_SVD.USCI_B0_I2C_MODE is
pragma Preelaborate;
---------------
-- Registers --
---------------
--... |
-- 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... |
package Opt44 is
type Sarray is array (1 .. 4) of Float;
for Sarray'Alignment use 16;
procedure Addsub (X, Y : Sarray; R : out Sarray; N : Integer);
end Opt44;
|
-- The Village of Vampire by YT, このソースコードはNYSLです
procedure Vampire.R3.Refresh_Page (
Output : not null access Ada.Streams.Root_Stream_Type'Class;
Form : in Forms.Root_Form_Type'Class;
URI : in String) is
begin
case Form.Template_Set is
when Forms.For_Full =>
String'Write (
Output,
"<meta http-equiv=""R... |
--
--
--
with Sessions;
with Actions;
package Action_Algorithms is
subtype Session_Type is Sessions.Session_Type;
subtype Action_Record is Actions.Action_Record;
function Compute_Action (Session : Session_Type;
Action : Action_Record)
return Integer;... |
procedure Variant2 is
type POWER is (GAS, STEAM, DIESEL, NONE);
type VEHICLE (Engine : POWER := NONE) is
record
Model_Year : INTEGER range 1888..1992;
Wheels : INTEGER range 2..18;
case Engine is
when GAS => Cylinders : INTEGER range 1..16;
when ... |
with Ada.Streams;
with Ada.Text_IO.Text_Streams;
with iconv.Streams;
procedure stream_w is
use type Ada.Streams.Stream_Element_Offset;
Std_Input : constant Ada.Text_IO.Text_Streams.Stream_Access :=
Ada.Text_IO.Text_Streams.Stream (Ada.Text_IO.Standard_Input.all);
Std_Output : constant Ada.Text_IO.Text_Streams.Stre... |
-- C74302B.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... |
-- Copyright (c) 2021 Bartek thindil Jasicki <thindil@laeran.pl>
--
-- 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/LICENSE-2.0
--
-- Unless required... |
with casillero,aspiradora,direccion;
use casillero,aspiradora,direccion;
package mundo is
type t_casilleros is array (t_posicion) of t_casillero;
type t_mundo is tagged record
casilleros : t_casilleros;
aspiradora : t_aspiradora;
end record;
procedure inicializar_mundo(m : in out t_mundo);
... |
with Generic_Queue;
pragma Elaborate_All (Generic_Queue);
package body Some_Package with SPARK_Mode is
type MyElement is new Float range 0.0 .. 10.0 with Default_Value => 0.0;
package Float_Buffer is new Generic_Queue(Index_Type => Unsigned_8,
Element_Type => MyEl... |
pragma License (Unrestricted);
-- extended unit
with Interfaces.C.Pointers;
package Interfaces.C.WChar_Pointers is
new Pointers (
Index => size_t,
Element => wchar_t,
Element_Array => wchar_array,
Default_Terminator => wchar_t'Val (0));
-- The instance of Interfaces.C.Pointers for wchar_t.
... |
package body HTML_Table is
procedure Print(Items: Item_Array; Column_Heads: Header_Array) is
function Blanks(N: Natural) return String is
-- indention for better readable HTML
begin
if N=0 then
return "";
else
return " " & Blanks(N-1);
end if;... |
with Ada.Text_IO;
use Ada.Text_IO;
procedure Specifier_Et_Tester is
-- La valeur absolue d'un nombre entier.
function Valeur_Absolue (N : in Integer) return Integer with
Post => Valeur_Absolue'Result >= 0
and (Valeur_Absolue'Result = N or Valeur_Absolue'Result = -N)
is
begin
if N >= 0 then
return N;
e... |
-- Abstract :
--
-- A generalized LR parser.
--
-- In a child package of Parser.LR partly for historical reasons,
-- partly to allow McKenzie_Recover to be in a sibling package.
--
-- Copyright (C) 2002, 2003, 2009, 2010, 2013-2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- This file is part of the WisiTok... |
-- Cycle computations
-- A variant to the integer division, where the number of cycles and the phase
-- within the cycle are computed and returned by single function.
-- In these functions, the remainder (the phase) is always non-negative.
-- Decompose_cycle is the standard operation;
-- Decompose_cycle_ceiled is appro... |
-- { dg-do compile }
-- { dg-options "-O" }
package body Opt17 is
function Func return S is
V : String (1 .. 6);
begin
V (1 .. 3) := "ABC";
return V (1 .. 5);
end;
end Opt17;
|
with Ada.Text_IO; use Ada.Text_IO;
with Libadalang.Analysis; use Libadalang.Analysis;
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation; use Rejuvenation;
with Rejuvenation.Factory; use Rejuvenation.Factory;
with Rejuvenation.Simple_Factory; use Rej... |
-- 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 Ships.Movement.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Ships.Movement
.Test_Data
... |
-----------------------------------------------------------------------
-- jason-testsuite -- Testsuite for jason
-- Copyright (C) 2016 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... |
---------------------------------------------------------------------------------
-- Copyright 2004-2005 © Luke A. Guest
--
-- This code is to be used for tutorial purposes only.
-- You may not redistribute this code in any form without my express permission.
------------------------------------------------------------... |
with System;
package Unc_Memops is
pragma Elaborate_Body;
type size_t is mod 2 ** Standard'Address_Size;
subtype addr_t is System.Address;
function Alloc (Size : size_t) return addr_t;
procedure Free (Ptr : addr_t);
function Realloc (Ptr : addr_t; Size : size_t) return addr_t;
procedure Expe... |
------------------------------------------------------------------------------
-- --
-- P G A D A . T H I N --
-- --
-- ... |
with
gel_demo_Server,
gel_demo_Client;
procedure launch_GEL_fused
--
-- Launches the fused version.
--
is
begin
gel_demo_Server.item.start;
gel_demo_Client.item.start;
end launch_GEL_fused;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
package Ada.Containers is
pragma Pure;
type Hash_Type is mod 2 ** 32; -- implementation-defined
-- extended
-- Shift_Left, Shift_Right, Shift_Right_Arithmetic, Rotate_Left,
-- and Rotate_Right.
-- These subprograms are convenience to make hash functions.
pragm... |
package body semaphore is
protected body Counting_Semaphore is
entry Secure when Current_Count > 0 is
begin
Current_Count := Current_Count - 1;
end;
procedure Release is
begin
Current_Count := Current_Count + 1;
end;
function Count return Integer is
begin
retu... |
with
gel.remote.World;
package gel_demo_Services
--
-- Provides RCI services.
--
is
pragma remote_call_Interface;
function World return gel.remote.World.view;
end gel_demo_Services;
|
-- Lumen.Events.Animate -- Event loop with frame-animation callback
--
-- Chip Richards, NiEstu, Phoenix AZ, Spring 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby gr... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
generic
type Data is private;
package Bin_Trees is
type Tree_Type is private;
function Empty(Tree: Tree_Type) return Boolean;
function Left (Tree: Tree_Type) return Tree_Type;
function Right(Tree: Tree_Type) return Tree_Type;
function Item (Tree: Tree_Type) return Data;
function Empty return Tree... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Text_IO;
with JohnnyText;
with Signals;
with Unix;
package body Display is
package JT renames JohnnyText;
package SIG renames Signals;
package TIO renames Ada.Text_IO;
---------------------... |
with Ada.Strings.Fixed;
package Latex_Writer.Picture is
subtype Latex_Slope is Integer range -6 .. 6;
type Picture_Length is delta 0.01 range -10_000.0 .. 10_000.0;
function "*" (X : Integer; Y : Picture_Length) return Picture_Length
is (Picture_Length (X) * Y);
function Pos (X, Y : Picture_Length) r... |
-----------------------------------------------------------------------
-- ADO Postgresql Database -- Postgresql Database connections
-- Copyright (C) 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ma... |
-- 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... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
package Max2 with SPARK_Mode is
type Vector is array (Integer range <>) of Positive;
function FindMax2 (V : Vector) return Integer
with
Pre => V'First < Integer'Last and V'Length > 0,
Post => FindMax2'Result >= 0 and
(FindMax2'Result = 0 or
(for some I in V'Range => FindMax2'Result = ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
-- extended unit
generic
type Index_Type is range <>;
type Element_Type is private;
type Array_Type is array (Index_Type range <>) of Element_Type;
-- diff (Array_Access)
-- diff (Free)
package Ada.Containers.Generic_Array_Types is
-- Ada.Containers.Vectors-like utilities ... |
package Plop is
type A is interface;
function Img (This : A) return String is abstract;
type B is new A with null record;
function Img (This : B) return String is ("B");
type C is new A with null record;
function Img (This : C) return String is ("C");
procedure Print (This : A'Class);
end Plop;... |
--------------------------------------------------------------------------------
-- Copyright (c) 2013, Felix Krause <contact@flyx.org>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this pe... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
--
-- Copyright (C) 2015-2017 secunet Security Networks AG
--
-- 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.
--
-- ... |
with Ada.Real_Time; use Ada.Real_Time;
with STM_Board; use STM_Board;
with Startup;
with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler);
-- The "last chance handler" is the user-defined routine that is called when
-- an exception is propagated. We need it in the executable, therefore it
-- must... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Exceptions;
with System.Address_To_Named_Access_Conversions;
with System.Runtime_Context;
with System.Shared_Locking;
package body System.Storage_Pools.Subpools is
pragma Suppress (All_Checks);
use type Finalization_Masters.Finalization_Master_Ptr;
use type Finalization_Masters.Finalize_Address_Ptr;
... |
-- 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... |
-----------------------------------------------------------------------
-- ADO Parameters -- Parameters for queries
-- Copyright (C) 2010, 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not ... |
-----------------------------------------------------------------------
-- security-oauth -- OAuth Security
-- Copyright (C) 2012, 2013 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... |
-- { dg-do compile }
pragma Restrictions (No_Allocators);
procedure Test_BIP_No_Alloc is
type LR (B : Boolean) is limited record
X : Integer;
end record;
function FLR return LR is
begin
-- A return statement in a function with a limited and unconstrained
-- result subtype can result ... |
package Corr_Discr is
type Base (T1 : Boolean := True; T2 : Boolean := False)
is null record;
for Base use record
T1 at 0 range 0 .. 0;
T2 at 0 range 1 .. 1;
end record;
type Deriv (D : Boolean := False) is new Base (T1 => True, T2 => D);
end Corr_Discr;
|
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Representation_Clauses;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Component_Clauses;
pa... |
with scanner.DFA; use scanner.DFA;
with Ada.Characters.Wide_Wide_Latin_1;
with Ada.Wide_Wide_Text_IO;
package scanner.IO is
User_Input_File : Ada.Wide_Wide_Text_IO.File_Type;
User_Output_File : Ada.Wide_Wide_Text_IO.File_Type;
Null_In_Input : exception;
Aflex_Internal_Error : exception;
Unex... |
--
-- This library is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Library 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) 2002 Leonid Dulman
with gener_b... |
with Libadalang.Analysis; use Libadalang.Analysis;
with Rejuvenation.Navigation; use Rejuvenation.Navigation;
package Rewriters_Context_Utils is
function Combine_Contexts (C1, C2 : Ada_Node) return Ada_Node
with Pre =>
Is_Reflexive_Ancestor (C1, C2)
or else Is_Reflexive_Ancestor (C2, C1),... |
-------------------------------------------------------------------------------
-- 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... |
-- Abstract :
--
-- see spec
--
-- Copyright (C) 2014 - 2019 All Rights Reserved.
--
-- The WisiToken package 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 option) any ... |
with
Glib,
glib.Error,
gtk.Builder,
gtk.Handlers;
package body aIDE.Editor.of_subprogram
is
use gtk.Builder,
Glib,
glib.Error;
function on_name_Entry_leave (the_Entry : access Gtk_Entry_Record'Class;
Self : in aIDE.Editor.of_subprog... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.