content stringlengths 23 1.05M |
|---|
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Strings.Hash;
with Text.Pool;
with Yaml.Events.Context;
package Yaml.Transformator.Annotation is
type Node_Context_Type is (Document_Root, Sequ... |
-----------------------------------------------------------------------
-- gen-integration-tests -- Tests for integration
-- Copyright (C) 2012, 2013, 2014, 2016, 2017, 2018, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Lic... |
-- RUN: %llvmgcc -c %s
procedure Array_Constructor is
A : array (Integer range <>) of Boolean := (True, False);
begin
null;
end;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Reverse_Video is
Rev_Video : String := Ascii.ESC & "[7m";
Norm_Video : String := Ascii.ESC & "[m";
begin
Put (Rev_Video & "Reversed");
Put (Norm_Video & " Normal");
end Reverse_Video;
|
-----------------------------------------------------------------------
-- wiki-filters-toc -- Filter for the creation of Table Of Contents
-- Copyright (C) 2016, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
with Uninit_Array_Pkg; use Uninit_Array_Pkg;
package body Uninit_Array is
function F1 return Integer;
pragma Inline_Always (F1);
function F1 return Integer is
Var : Arr;
begin
return F (Var(Var'First(1)));
end;
function F2 return ... |
with Ada.Numerics.Float_Random;
with Ada.Containers.Vectors; use Ada.Containers;
with Ada.Numerics.Generic_Elementary_Functions;
package MathUtils is
pragma Elaborate_Body(MathUtils);
pragma Assertion_Policy (Pre => Check,
Post => Check,
Type_Invariant => ... |
package Chat
--
-- Provides a namespace for the chat family.
--
is
pragma Pure;
end Chat;
|
package OpenAL.Context.Error is
type Error_t is
(No_Error,
Invalid_Device,
Invalid_Context,
Invalid_Enumeration,
Invalid_Value,
Out_Of_Memory,
Unknown_Error);
-- proc_map : alcGetError
function Get_Error (Device : in Device_t) return Error_t;
private
function Map_Constant_T... |
-- SPDX-License-Identifier: MIT
--
-- Copyright (c) 2009 - 2018 Gautier de Montmollin
-- Copyright (c) 2019 onox <denkpadje@gmail.com>
--
-- 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 Softw... |
-- { dg-do compile }
-- { dg-options "-gnatct" }
with Discr1_Pkg; use Discr1_Pkg;
package Discr1 is
procedure Proc (V : Variable_String_Array);
end Discr1;
|
separate (Numerics.Sparse_Matrices)
function Mult_M_SV (A : in Sparse_Matrix;
X : in Sparse_Vector) return Sparse_Vector is
I : constant Int_Array := To_Array (X.I);
B : constant Real_Vector := To_Array (X.X);
V : Real_Vector (1 .. A.N_Row) := (others => 0.0);
N : Pos;
begin
pragma Assert (A... |
-----------------------------------------------------------------------
-- awa-wikis-parsers-tests -- Unit tests for wiki parsing
-- Copyright (C) 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ... |
-----------------------------------------------------------------------
-- mat-memory-tests -- Unit tests for MAT memory
-- Copyright (C) 2014, 2015, 2019, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
-- Module : string_lists.ada
-- Component of : common_library
-- Version : 1.2
-- Date : 11/21/86 16:34:39
-- SCCS File : disk21~/rschm/hasee/sccs/common_library/sccs/sxstring_lists.ada
with String_Pkg;
with Lists;
package String_Lists is new Lists(String_Pkg.String_Type, String_Pkg.Equal);
|
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Reporter_Data_Struct_Class.Impl;
use Apsepp.Test_Reporter_Data_Struct_Class.Impl;
use Apsepp.Test_Reporter_Data_Struct_Class;
package Apsepp.Test_Reporter_Class.Struct_Builder is
--------... |
with Ada.Text_IO, Ada.Command_Line, Ada.Numerics.Discrete_Random;
procedure Flip_Bits is
subtype Letter is Character range 'a' .. 'z';
Last_Col: constant letter := Ada.Command_Line.Argument(1)(1);
Last_Row: constant Positive := Positive'Value(Ada.Command_Line.Argument(2));
package Boolean_Rand is new Ad... |
-- $Id: StringM.md,v 1.3 1992/08/07 14:45:41 grosch rel $
-- $Log: StringM.md,v $
-- Ich, Doktor Josef Grosch, Informatiker, Sept. 1994
with Text_Io, Strings;
use Text_Io, Strings;
package StringM is
subtype tStringRef is Integer;
function PutString (s: tString) return tStringRef;
-- Stores string 's' in the... |
with
openGL.Tasks,
openGL.Server,
sdl.Video.Windows.Makers,
sdl.Video.gl,
ada.Task_identification,
ada.Text_IO;
procedure launch_core_Test
--
-- Exercise basic subprograms common to all GL profiles.
--
-- TODO: Complete this.
--
is
use ada.Text_IO;
use type sdl.Video.Windows.wi... |
-- Abstract:
--
-- Root of WisiToken lexer/parser generator and exector.
--
-- The token type is an integer subtype, not an enumeration type, to
-- avoid making this package generic, which would make all other
-- packages generic.
--
-- Additional information about a token can be stored in the
-- 'augmented' fie... |
-- PACKAGE Extended_Real.Elementary_Functions
--
-- Taylor series are used to get Exp, Sin and Cos. Once these are calculated,
-- Newton-Raphson iteration gives inverse functions: Log, Arccos, and Arcsin,
-- Arctan. Similarly, starting with the function G(Y) = Y**(-N),
-- Newton-Raphson iteration gives the inverse: ... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
package body Yaml.Transformator.Annotation.Identity is
procedure Put (Object : in out Instance; E : Event) is
begin
if Object.Current_Exists then
raise Constraint_Error with
... |
with Gtkada.Builder; use Gtkada.Builder;
with Gtk.GEntry;
with Gtk.Widget;
with Gtk.Handlers;
with Gtk.Text_View;
with Gtk.Text_Buffer;
with Glib.Values;
package callbacks is
package text is new Gtk.Handlers.Callback (Gtk.Text_Buffer.Gtk_Text_Buffer_Record);
function tryQuit (Object : access Gtkada_Builder... |
-- THIS GENERIC PROCEDURE IS INTENDED FOR USE IN CONJUNCTION WITH THE ACVC
-- CHAPTER 13 C TESTS. IT IS INSTANTIATED WITH TWO TYPES. THE FIRST IS AN
-- ENUMERATION TYPE FOR WHICH AN ENUMERATION CLAUSE HAS BEEN GIVEN, AND THE
-- SECOND IS AN INTEGER TYPE WHOSE 'SIZE IS THE SAME AS THE 'SIZE OF THIS
-- ENUMERATION TYPE.
... |
-- 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 Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
package body P_StepHandler.KeyHandler is
function Make (Self : in out KeyHandler) return KeyHandler is
begin
Self.Ptr_Key := null;
Self.Ptr_SubKeyArray := null;
return Self;
end;
overriding
p... |
with Some_Package;
procedure main with SPARK_Mode is
begin
Some_Package.bar;
end main;
|
-----------------------------------------------------------------------
-- util-encoders-base64 -- Encode/Decode a stream in Base64
-- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
... |
with Regression_Library; use Regression_Library;
package body Regression is
function "&" (Left, Right : String) return String is
begin
return Left;
end "&";
package body Outer is
function OuterFun (Input : Boolean) return Boolean is
begin
return False;
end... |
-----------------------------------------------------------------------
-- util-encodes-tests - Test for encoding
-- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not us... |
with Ada.Text_IO, Logic;
procedure Twelve_Statements is
package L is new Logic(Number_Of_Statements => 12); use L;
-- formally define the 12 statements as expression function predicates
function P01(T: Table) return Boolean is (T'Length = 12); -- list of 12 statements
function P02(T: Table) ... |
with Ada.Strings.Wide_Wide_Unbounded;
with Ada.Characters.Conversions;
with Ada.Strings.Wide_Wide_Maps.Wide_Wide_Constants;
with Ada.Wide_Wide_Text_IO;
-- Package to make it easier to deal with strings in general, but wide,
-- international strings in particular.
package Unicode_Strings is
package Unbounded
... |
-----------------------------------------------------------------------
-- awa-jobs-services -- Job services
-- Copyright (C) 2012, 2014, 2015, 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 thi... |
with Ada.Interrupts;
with STM32_SVD.USART;
with STM32_SVD; use STM32_SVD;
generic
Clock : Integer;
USART : in out STM32_SVD.USART.USART_Peripheral;
Speed : UInt32;
IRQ : Ada.Interrupts.Interrupt_ID;
RX_DMA_Buffer_Size : in Natural := 0;
package STM32GD.USART.Peripheral is
RX_DMA_Buffer: array (1... |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Common; use Common;
with Ada.Unchecked_Deallocation;
package Algebra with SPARK_Mode is
Max_Children : constant := 50;
type Node_Kind_Type is (Action, Operator, Undefined);
-- Nodes can be either Action nodes or Operator nodes
ty... |
with Ada.Text_IO;
use Ada.Text_IO;
package body Buffer is
protected body CircularBuffer is
entry WriteBuf(X: in INTEGER) --write data to buffer
when count<N is --no writing to a full buffer
begin
A(In_Ptr):=X;
In_Ptr:=In_Ptr+1;
cou... |
-- Example_Adafunctions
-- A example of using the Ada 2012 interface to Lua for functions / closures etc
-- Copyright (c) 2015, James Humphry - see LICENSE for terms
with Lua; use Lua;
package Example_AdaFunctions is
function FooBar (L : Lua_State'Class) return Natural;
function Multret (L : Lua_State'Class)... |
package Lto17 is
type Chunk_List_Element;
type Chunk_List is access Chunk_List_Element;
type Arr is array (Natural range <>) of Integer;
type Chunk(Size : Natural) is record
Data : Arr(1 .. Size);
Where : Natural;
end record;
type Chunk_List_Element(Size : Natural) is record
Chn... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
package Glfw.Events.Mouse is
type Button is new Interfaces.C.int range 0 .. 7;
Left_Button : constant := 0;
Right_Button : constant := 1;
Middle_Button : constant := 2;
subtype Coor... |
-----------------------------------------------------------------------
-- This package generate Ada code from an XML definition file.
-- Top level package
--
-----------------------------------------------------------------------
package Glade3_Generate is
Debug : Boolean := False;
-- for internal use
Ol... |
package body Matrices is
function "*" (Left, Right : Matrix) return Matrix is
Result : Matrix (Left'Range (1), Right'Range (2)) :=
(others => (others => Zero));
begin
if Left'Length (2) /= Right'Length (1) then
raise Size_Mismatch;
end if;
for I in Result'Range (1) loop
... |
-----------------------------------------------------------------------
-- ADO Objects Tests -- Tests for ADO.Objects
-- Copyright (C) 2011 - 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 ... |
-----------------------------------------------------------------------
-- akt-commands-create -- Create a keystore
-- Copyright (C) 2019, 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 fil... |
with MathUtils;
package body Tensor is
function Element_Count(d: in Var'Class) return Positive is
begin
return Positive(d.data.Length);
end Element_Count;
function Allocate(value_count: in Positive) return Var is
begin
return r: Var do
r.size.Append(value_count);
r.data.Se... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ skills vector container implementation --
-- |___/_|\_\_|_|____| by: Dennis Przytarski, Timm Felden ... |
pragma Style_Checks (Off);
pragma Warnings (Off);
-------------------------------------------------------------------------
-- GL.Geometry - GL geometry primitives
--
-- Copyright (c) Rod Kay 2007
-- AUSTRALIA
-- Permission granted to use this software, without any warranty,
-- for any purpose, pro... |
-- C53007A.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... |
separate (Numerics)
function Abs_Max_RA (Item : in Real_Vector) return Real is
Result : Real := 0.0;
begin
for N of Item loop
Result := Real'Max (Result, abs (N));
end loop;
return Result;
end Abs_Max_RA;
|
with adaptive_quad;
with Text_Io; -- always need these two lines for printing
use Text_Io;
with Ada.Float_Text_IO;
use Ada.Float_Text_IO;
with Ada.Numerics.Generic_Elementary_Functions;
procedure AQMain is
package FloatFunctions is new Ada.Numerics.Generic_Elementary_Functions(Float);
use FloatFunctions;
... |
with Pck; use Pck;
procedure Foo is
C : Character := 'a';
WC : Wide_Character := 'b';
WWC : Wide_Wide_Character := 'c';
begin
Do_Nothing (C'Address); -- START
Do_Nothing (WC'Address);
Do_Nothing (WWC'Address);
end Foo;
|
-----------------------------------------------------------------------
-- components-widgets-likes -- Social Likes Components
-- Copyright (C) 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 thi... |
------------------------------------------------------------------------------
-- Copyright (c) 2011, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package body openGL.Surface.privvy
is
function to_GLX (Self : in Surface.item'Class) return glx.Drawable
is
begin
return Self.glx_Surface;
end to_GLX;
end openGL.Surface.privvy;
|
<with Ada.Text_IO, Simple_Parse;
procedure Phrase_Reversal is
function Reverse_String (Item : String) return String is
Result : String (Item'Range);
begin
for I in Item'range loop
Result (Result'Last - I + Item'First) := Item (I);
end loop;
return Result;
end Reverse_String;
... |
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)
-- 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... |
-- { dg-do run }
with Text_IO; use Text_IO;
with GNAT.SPITBOL.Patterns; use GNAT.SPITBOL.Patterns;
procedure Spipaterr is
X : String := "ABCDE";
Y : Pattern := Len (1) & X (2 .. 2);
begin
if Match ("XB", Y) then
null;
else
raise Program_Error;
end if;
end;
|
with Util; use Util;
with Device;
package body BRAM is
function Get_Count(width : Natural;
depth : Natural) return Natural is
bram_width : constant Natural := Device.Get_BRAM_Width;
bram_depth : constant Natural := Device.Get_BRAM_Depth;
result : Natural := 0;
beg... |
with IRQ;
with Ada.Interrupts.Names; use Ada.Interrupts.Names;
package Peripherals is
Handler : IRQ.Controller (USART1_Interrupt);
end Peripherals;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the ... |
with Aof.Core.Properties;
with Callbacks;
-- In this example, we are going to create a simple integer property.
-- As a refresher, a property is a class member field with a get and
-- set method. A property is built upon the signals & slots concept
-- in this implementation to realize the observer pattern. Below... |
private with NXP_SVD.GPIO;
with HAL.GPIO;
with NXP.Pint; use NXP.Pint;
-- limited with NXP.IOCON;
package NXP.GPIO is
type GPIO_Port is limited private;
type GPIO_Pin is
(Pin_0, Pin_1, Pin_2, Pin_3, Pin_4, Pin_5, Pin_6, Pin_7,
Pin_8, Pin_9, Pin_10, Pin_11, Pin_12, Pin_13, Pin_14, Pin_15,... |
with
gtk.Widget;
with Gtk.Button;
with Gtk.Window;
with Adam.exception_Handler,
AdaM.Declaration.of_exception;
with Gtk.Notebook;
with Gtk.Table;
package aIDE.Palette.of_exceptions
is
type Item is new Palette.item with private;
type View is access all Item'Class;
-- Forge
--
function to_... |
with DDS.DataReader_Impl;
with DDS.DataWriter_Impl;
with DDS.DomainParticipant;
with DDS.Publisher;
with DDS.Subscriber;
with DDS.Topic;
with DDS.TopicDescription;
with DDS.WaitSet;
with DDS.ReadCondition;
private package DDS.Request_Reply.Impl is
type Ref is new Ada.Finalization.Limited_Controlled and Request_Rep... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- { dg-do compile }
with System; with Ada.Unchecked_Conversion;
procedure Test_Call is
type F_ACC is access function (Str : String) return String;
function Do_Something (V : F_Acc) return System.Address is
begin
return System.Null_Address;
end Do_Something;
function BUG_1 (This : acces... |
with Datos;
use Datos;
function Posicion ( L : Lista; Num : Integer ) return Natural is
-- pre:
-- post: el resultado es la posicion de la primera aparicion de Num,
-- caso de que Num pertenezca a L, y cero en otro caso
LCopia : Lista;
Found : Boolean;
Pos, PosDev : Integer;
begin
LCopia := L... |
--------------------------------------------------------------------------------------------------------------------
-- 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... |
function "-" (Left, Right : Luminance) return Count is
begin
if Left > Right then
return Count (Left) - Count (Right);
else
return Count (Right) - Count (Left);
end if;
end "-";
|
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Strings;
package body LSP.Servers.Handlers is
function "+" (Text : Wide_Wide_String)
return League.Strings.Univ... |
--------------------------------------------
-- --
-- PACKAGE GAME - PARTIE ADA --
-- --
-- GAME-DISPLAY-DRAW.ADS --
-- --
-- Gestion du dessin sur surface --
-- ... |
with Ada.Containers.Vectors; use Ada.Containers;
with Ada.Text_IO; use Ada.Text_IO;
procedure Day14 is
package Natural_Vectors is new Vectors
(Index_Type => Natural,
Element_Type => Natural);
Score_Board : Natural_Vectors.Vector;
Part2_Goal : Natural_Vectors.Vector;
Part2_... |
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces.C; use Interfaces.C;
package Scheme_Test is
procedure Adainit;
pragma Import (C, AdaInit);
procedure Adafinal;
pragma Import (C, AdaFinal);
function Hello_Ada(Num : Int) return Int
with
Export => True,
Convention => C,
External... |
------------------------------------------------------------------------------
-- Copyright (c) 2016-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with NXP.Device; use NXP.Device;
with System; use System;
with NXP_SVD; use NXP_SVD;
with NXP_SVD.GPIO; use NXP_SVD.GPIO;
with NXP_SVD.IOCON; use NXP_SVD.IOCON;
with NXP_SVD.INPUTMUX; use NXP_SVD.INPUTMUX;
with NXP_SVD.PINT; use NXP_SVD.PINT;
package body NXP.GPIO is
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with System;
with System.Storage_Elements; use System.Storage_Elements;
with System.Machine_Code; use System.Machine_Code;
with System.BB.MCU_Parameters; use System.BB.MCU_Parameters;
package body STM32GD.Startup is
procedure Stack_End with Import => True,
Convention => Asm,
External_Name => "__stack_e... |
------------------------------------------------------------------------------
-- --
-- Hardware Abstraction Layer for STM32 Targets --
-- --
-- ... |
generic
type Real is digits <>;
type R_Index is range <>;
type C_Index is range <>;
type Matrix is array(R_Index, C_Index) of Real;
package Rectangular_Test_Matrices is
type Matrix_Id is
(Zero_Diagonal, -- all 1's with 0 down the diagonal
Upper_Ones, --
Lower_Ones, --
... |
package Inline2_Pkg is
function Valid_Real (Number : Float) return Boolean;
pragma Inline (Valid_Real);
function Invalid_Real return Float;
pragma Inline (Invalid_Real);
end Inline2_Pkg;
|
-- 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.Events.Queue;
with Yaml.Destination;
package Yaml.Dom.Dumping is
function To_Event_Queue (Document : Document_Reference)
return Events.... |
with Piles;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Deallocation; --// Pour libérer la mémoire allouée dynamiquement
procedure Exemples_Memoire_Dynamique is
type T_Pointeur_Integer is access Integer;
procedure Free
is new Ada.Unchecked_Deallocation (Integer, T_Pointeur_Integer);
-- o... |
with
aIDE,
AdaM.Factory;
procedure launch_AIDE
is
begin
AdaM.Factory.open;
aIDE.start;
aIDE.stop;
AdaM.Factory.close;
end launch_AIDE;
|
-----------------------------------------------------------------------
-- el-expressions-nodes -- Expression Nodes
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2020, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
package Bitmaps.RGB is
type Pixel is record
R, G, B : Luminance := Luminance'First;
end record;
type Raster is array (Natural range <>, Natural range <>) of Pixel;
type Image (Width, Height : Positive) is record
Pixels : Raster (0 .. Height, 0 .. Width);
end record;
Black : constant Pix... |
package OpenGL.Check is
GL_Error : exception;
procedure State_OK (Message : in String := "");
procedure Raise_Exception (Message : in String);
end OpenGL.Check;
|
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017-2020, Fabien Chouteau --
-- --
-- ... |
generic
No_of_Stars : Natural := 400;
far_side : GLOBE_3D.Real;
package GLOBE_3D.Stars_sky is
pragma Elaborate_Body;
procedure Display (Rotation : Matrix_33);
end GLOBE_3D.Stars_sky;
|
with Text_IO;
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Sequential_IO;
with Ada.Real_Time;
with Interfaces;
with Ray_Tracer;
with Bitmap;
with Scene;
use Ada.Integer_Text_IO;
use Ray_Tracer;
use Interfaces;
use Ada.Real_Time;
use Ada.Text_IO;
use Text_IO;
procedure Test is
t1,t2 : Ada.Real_Time.Ti... |
-- MIT License
-- Copyright (c) 2021 Stephen Merrony
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify,... |
-----------------------------------------------------------------------
-- asf.sessions -- ASF Sessions
-- Copyright (C) 2010, 2011 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 ... |
-- Storage_Array_To_Hex_String
-- This is a simple conversion routine for test or example routines
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with System.Storage_Elements;
function Storage_Array_To_Hex_String(X : System.Storage_Elements.Storage_Array)
return ... |
with Ada.Unchecked_Deallocation;
package body Registre is
procedure Initialiser (Registre : out T_Registre) is
begin
Registre := (others => null);
end Initialiser;
function Hash (Cle : Integer) return Integer is
begin
return Cle mod Modulo;
end Hash;
function Est_Vide (Registre : T_... |
pragma Task_Dispatching_Policy(FIFO_Within_Priorities);
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Real_Time; use Ada.Real_Time;
procedure overloaddetection is
package Duration_IO is new Ada.Text_IO.Fixed_IO(Duration);
package Int_IO is new Ada.Text_IO.Integer_IO(Integer);
--------
function F(N : Integer... |
-- C96005A.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... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
with elab1;
procedure elab2 is
A : elab1.My_Rec;
begin
null;
end;
|
with AUnit; use AUnit;
with AUnit.Test_Cases; use AUnit.Test_Cases;
package Test_String_Utils is
type String_Utils_Test_Case is new Test_Case with null record;
overriding procedure Register_Tests (T : in out String_Utils_Test_Case);
-- Register routines to be run
overriding function Name (T ... |
-- AOC 2020, Day 24
package Day is
function count_tiles(filename : in String) return Natural;
function evolve_tiles(filename : in String; steps : in Natural) return Natural;
end Day;
|
package body Rejuvenation.Finder is
-- Public: Find Node_Kind --------
function Find
(Node : Ada_Node'Class;
Predicate : not null access function
(Node : Ada_Node'Class) return Boolean)
return Node_List.Vector is
(Find_Predicate (Node, Predicate, Into));
function Find_Non_... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
private package Ada_Pretty.Units is
type Compilation_Unit is new Node with private;
function New_Compilation_Unit
(Root ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.