content stringlengths 23 1.05M |
|---|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Streams.Stream_IO;
with Ada.Exceptions; use Ada.Exceptions;
with Interfaces;
with kv.avm.Memories;
with kv.avm.Assemblers;
with kv.avm.Instances;
with kv.avm.Machines;
with kv.avm.Processors;
with kv.avm.Registers;
with kv.avm.Log... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Element_Vectors;
with Program.Elements.Defining_Names;
with Program.Elements... |
My_String : String := Get_String;
My_Integer : Integer := Get_Integer;
|
-- { dg-do run }
-- { dg-options "-O" }
with Opt13_Pkg; use Opt13_Pkg;
procedure Opt13 is
T : My_Type;
begin
Allocate (T);
if N /= 1 then
raise Program_Error;
end if;
end;
|
with Lv.Style;
with Lv.Objx.Page;
package Lv.Objx.Tabview is
subtype Instance is Obj_T;
type Action_T is access function
(Self : access Instance;
Tab_Id : Uint16_T) return Res_T;
pragma Convention (C, Action_T);
type Btns_Pos_T is (Pos_Top, Pos_Bottom);
type Style_T is
(Style_Bg,
... |
-----------------------------------------------------------------------
-- Copyright 2012 Altran Praxis Limited --
-- Copyright 2021 Lev Kujawski --
-- --
-- This file is... |
with Person;
package Greetings is
Unknown_Greeting : exception;
Hello : constant String := "hello";
Hi : constant String := "hi";
Good_Morning : constant String := "good morning";
What_s_Up : constant String := "what's up";
procedure Swear (Greeting : String;
... |
--
-- Copyright (C) 2015-2016 secunet Security Networks AG
-- Copyright (C) 2017 Nico Huber <nico.h@gmx.de>
--
-- 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,... |
with Device; use Device;
with Memory.Container; use Memory.Container;
package body Memory.Transform.Flip is
function Create_Flip return Flip_Pointer is
result : constant Flip_Pointer := new Flip_Type;
begin
return result;
end Create_Flip;
function Random_Flip(next : access... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Subtractive_Generator;
procedure Main is
Random : Subtractive_Generator.State;
N : Natural;
begin
Subtractive_Generator.Initialize (Generator => Random,
Seed => 292929);
for I in 220 .. 222 loop
Subtractive_Generator.Next (Generato... |
package Opaque is
-- declare opaque elements
type Handle is private;
NIX : constant Handle;
private
-- define opaque elements
type Handle is new Integer;
NIX : constant Handle := 0;
end Opaque;
|
------------------------------------------------------------------------------
-- Copyright (c) 2014-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_video_video_enumtypes_h is
-- unsupported macro: GST_TYPE_VIDEO_FORMAT (gst_video_format_get_type())
-- enumerations from "video.h"
function... |
-- { dg-do compile }
pragma Optimize (Space); -- { dg-warning "must specify -Os" }
procedure Warn8 is
begin
null;
end;
|
-----------------------------------------------------------------------
-- awa-setup-applications -- Setup and installation
-- Copyright (C) 2016, 2017, 2018, 2019, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
--... |
-----------------------------------------------------------------------
-- awa-events-services -- AWA Event Manager
-- Copyright (C) 2012, 2015, 2016, 2018, 2019, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Deallocation;
package body LC is
procedure Free is
new Ada.Unchecked_Deallocation (Object => T_Cellule, Name => T_LC);
procedure Initialiser(Sda: out T_LC) is
begin
Sda := null;
end Initialiser;
function Est_Vide (Sda : T_LC) return Boolean... |
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; with Mod_Inv; use Mod_Inv, Ada.text_IO;
procedure Mod_Inv_Test is
begin
-- Put_Line(Natural'Image(Inverse(154, 3311)));
-- The above would raise CONSTRAINT_ERROR : GCD ( 154, 3311 ) = 77 /= 1
Put_Line(Natural'Image(Inverse(42, 2017)));
end Mod_Inv_Test;
|
with
POSIX.File_Status,
Ada.Unchecked_Deallocation,
Ada.IO_Exceptions;
package body Shell.Directory_Iteration
is
-- Cursor
--
function Has_Element (Pos : in Cursor) return Boolean
is
begin
return Pos.Directory_Entry /= null;
end Has_Element;
-- Directory
--
functio... |
-- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.PWR is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_LPMS_Field is HAL... |
with Ada.Numerics.Generic_Elementary_Functions;
package body Orbit_2 is
package mth is new Ada.Numerics.Generic_Elementary_Functions(Real);
use mth;
function Norm (Y : Dynamical_Variable)
return Real
is
Sum : Real := +0.0;
begin
for i in Dyn_Index loop
Sum := Sum + Abs Y(i);
... |
with Kernel.Peripherals.Registers;
-- to get definitions of MEC registers such as:
-- Test_Control
-- Interrupt_Mask
-- Interrupt_Force
procedure Force_External_Interrupt_2 is
package KPR renames Kernel.Peripherals.Registers;
-- The MEC registers must be accesses as a whole.
-- Th... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Complex_Text_IO; use Ada.Complex_Text_IO;
with Ada.Numerics.Complex_Types; use Ada.Numerics.Complex_Types;
with Ada.Numerics.Complex_Arrays; use Ada.Numerics.Complex_Arrays;
procedure ConTrans is
subtype CM is Complex_Matrix;
S2O2 : constant Float := 0.7071067811865;
... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 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... |
--
-- Copyright (C) 2015-2016 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.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure Error is
-- Note: If Constrained_Integer is constrained to 0
-- .. Integer'Last then Constraint_Error is raised when
-- Result1 is calculated. It appears to me that the
-- boundry check is occurring after the calculat... |
-- Copyright 2016-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... |
with Ada.Text_IO;
with Ada.Numerics.Discrete_Random;
procedure Game_24 is
subtype Operation is Character;
type Op_Array is array (Positive range <>) of Operation;
type Digit is range 1 .. 9;
type Digit_Array is array (Positive range <>) of Digit;
package Digit_IO is new Ada.Text_IO.Integer_IO (Digit);
... |
private with STM32_SVD.SYSCFG;
package STM32.OPAMP is
type Operational_Amplifier is limited private;
procedure Enable (This : in out Operational_Amplifier)
with Post => Enabled (This);
procedure Disable (This : in out Operational_Amplifier)
with Post => not Enabled (This);
function Enabled (T... |
generic
Max_MyString_Length : Positive;
package MyString with SPARK_Mode is
type MyString is private;
function To_String(M : MyString) return String with
Post => To_String'Result'Length = Length(M) and
To_String'Result'First = 1 and To_String'Result'Last = Length(M);
function From_Stri... |
with ada.text_io,ada.integer_text_io,game_types,game_functions,display,ada.calendar ;
use ada.text_io ;
procedure main is
cells : game_types.array_of_cell ;
f : file_type ;
begin
cells := game_functions.initialize_cells ;
loop
game_functions.re... |
-----------------------------------------------------------------------
-- util-encoders-kdf-pbkdf2 -- Password-Based Key Derivation Function 2, RFC 8018.
-- Copyright (C) 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Licens... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
--------------------------------------------------------------------------------
-- --
-- B B --
-- Ball on Beam Simulator ... |
with Ada.Assertions; use Ada.Assertions;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Ordered_Maps;
with Ada.Containers.Vectors;
procedure Day25 is
generic
type T is private;
with function "<" (Left, Right : T) return Boolean;
package Disjoint_Sets is
procedure Insert (Element : T... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Matrix is
generic
type Element is private;
Zero : Element;
One : Element;
with function "+" (A, B : Element) return Element is <>;
with function "*" (A, B : Element) return Element is <>;
with function Image (X : Element) return... |
with AUnit.Assertions; use AUnit.Assertions;
with Ada.Real_Time;
with ACO.Drivers.Dummy;
with ACO.CANopen;
with ACO.Nodes.Locals;
with ACO.Nodes.Remotes;
with ACO.OD.Example;
with ACO.OD_Types;
with ACO.OD_Types.Entries;
with ACO.Messages;
with ACO.States;
with ACO.SDO_Sessions;
with ACO.Configuration;
package body ... |
with Ada.Exception_Identification.From_Here;
with Ada.Exceptions.Finally;
with Ada.Streams.Naked_Stream_IO.Standard_Files;
with System.Address_To_Named_Access_Conversions;
with System.Native_IO;
with System.Standard_Allocators;
with System.Storage_Elements;
with System.Wide_Startup; -- that is also linked by Ada.Comman... |
-- 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... |
pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with Interfaces.C; use Interfaces.C;
with sys_ustdint_h;
package arm_math_types_h is
-- unsupported macro: LOW_OPTIMIZATION_ENTER __attribute__(( optimize("-O1") ))
-- unsupported macro: F64_MAX ((float64_t)DBL_MAX)
-- unsupported macro: ... |
-----------------------------------------------------------------------
-- util-encoders-base64 -- Encode/Decode a stream in base64adecimal
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (th... |
-- hello.adb
-- Ada program. Yay!
--
-- Simon Heath
-- 19/07/2004
with Text_Io;
use Text_Io;
procedure Hello is
begin
Put_Line( "Hello world!" );
end Hello;
|
package body Qweyboard.Emulation is
Return_Combo : Key_Sets.Set;
Backspace_Combo : Key_Sets.Set;
task body Timer_Task is
Next_Deadline : RT.Time;
begin
loop
Softboard.Get_Deadline (Next_Deadline);
delay until Next_Deadline;
Softboard.Timeout;
end loop;
end Ti... |
-- part of FreeTypeAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
package body FT.Errors is
function Description (Code : Error_Code) return String is
begin
case Code is
when Ok => return "No error";
when Cannot_Open_Resource => return "... |
with Pulse_Simple_H; use Pulse_Simple_H;
with Pulse_Sample_H; use Pulse_Sample_H;
with Pulse_Def_H; use Pulse_Def_H;
with Interfaces.C.Strings; use Interfaces.C.Strings, Interfaces.C;
with Ada.Text_IO; use Ada.Text_IO;
procedure Pulsada_Test.Main is
pragma Linker_Options ("-lpulse");
pragma Linker_Option... |
-- 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... |
with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
package SequenceStrategy is
FIRST : constant Integer := 0;
SECOND : constant Integer := 1;
type Sequence is new AbstractStrategyCombin... |
-----------------------------------------------------------------------
-- openid -- Example of OpenID 2.0 Authentication
-- Copyright (C) 2011, 2012, 2013, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ma... |
-- 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 Gela; use Gela;
with Gela.Decoders;
with Gela.Encodings;
with Gela.Source_Buffers;
with Asis.Gela.Lines;
package Asis.Gela.Parser is
procedure Run
(The_Context : in Asis.Context;
Input : in Source_Buffers.Source_Buffer'Class;
Encoding : in Encodings.En... |
-- Copyright (c) 2020-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 req... |
with Generic_Quaternions;
package Test is
package Quaternions is new Generic_Quaternions (Float);
end Test;
|
-----------------------------------------------------------------------
-- Util.Concurrent.Fifos -- Concurrent Fifo Queues
-- Copyright (C) 2012 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 fi... |
-- 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.
... |
-----------------------------------------------------------------------
-- EL.Contexts -- Contexts for evaluating an expression
-- Copyright (C) 2009, 2010, 2011, 2012, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Lice... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package PortScan.Buildcycle.Ports is
function build_package (id : builders;
sequence_id : port_id;
interactive : Boolean := False;
... |
M:main
F:G$Delay1ms$0$0({2}DF,SV:S),C,0,0,0,0,0
F:G$delay_ms$0$0({2}DF,SV:S),C,0,0,0,0,0
F:G$EEPROM_read$0$0({2}DF,SC:U),C,0,0,0,0,0
F:G$EEPROM_write$0$0({2}DF,SV:S),C,0,0,0,0,0
F:G$EEPROM_clean$0$0({2}DF,SV:S),C,0,0,0,0,0
F:G$Data_change$0$0({2}DF,SV:S),C,0,0,0,0,0
F:G$DATA_read1$0$0({2}DF,SV:S),C,0,0,0,0,0
F:G$DATA_s... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Strings;
with Slim.Menu_Commands;
package Slim.Menu_Models is
type Menu_Path is private;
type Menu_Model is limit... |
pragma SPARK_Mode(On);
package body Stack is
function Top (S : in Stack) return Thing is (S.Elements (S.Quantity));
procedure Pop (S : in out Stack) is
begin S.Quantity := S.Quantity - 1; end Pop;
procedure Put (S : in out Stack; E : Thing) is
begin
S.Quantity := S.Quantity + 1;
S.Elements (... |
package body ACO.Protocols.Network_Management.Masters is
procedure Request_State
(This : in out Master;
State : in ACO.States.State)
is
Cmd : NMT_Commands.NMT_Command;
begin
This.Set (State);
Cmd := (As_Raw => False,
Command_Specifier => NMT_Comman... |
with
ada.Task_Identification;
package openGL.Tasks
--
-- Allow checking that a GL operation is called only in the GL renderer engine task.
--
is
Renderer_Task : ada.Task_Identification.Task_Id := ada.Task_Identification.null_Task_Id;
--
-- The current renderer task.
procedure check;
function c... |
package Spaceship is
type Dmg_range is new Integer range 1 .. 100;
type Spaceship_State is
(ALIVE, SHOOTING, DMG_DEALT, RECOVER, INVISIBLE, DEAD);
type Spaceship is record
State : Spaceship_State := ALIVE;
Life : Integer := 100;
Damage : Positive := 100;
Boost : Integer := 0;
... |
-- { dg-do run }
with prefix1; use prefix1;
procedure test_prefix1 is
Val : Natural;
Obj : T;
--
begin
for J in Obj.Func'Range loop
Val := Obj.Func (J);
if Val /= 2 ** J then
raise Program_Error;
end if;
end loop;
end test_prefix1;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure MultiReturn is
procedure SumAndDiff (x, y : Integer; sum, diff : out Integer) is begin
sum := x + y;
diff := x - y;
end SumAndDiff;
inta : Integer := 5;
intb : Integer := 3;
thesum, thediff : Integer;
begin
SumAndDiff (inta, intb, thesum, thedif... |
pragma License (Unrestricted);
-- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux)
with Ada.Locales;
package System.Native_Locales is
pragma Preelaborate;
subtype ISO_639_Alpha_2 is Ada.Locales.ISO_639_Alpha_2;
subtype ISO_639_Alpha_3 is Ada.Locales.ISO_639_Alpha_3;
subtype ISO_3166_1... |
package AFRL.CMASI.MissionCommand.SPARK_Boundary with SPARK_Mode is
pragma Annotate (GNATprove, Terminating, SPARK_Boundary);
function Get_VehicleID
(Command : MissionCommand) return Int64
with Global => null;
end AFRL.CMASI.MissionCommand.SPARK_Boundary;
|
-- 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... |
-----------------------------------------------------------------------
-- pinger -- Ping hosts
-- Copyright (C) 2016, 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 complian... |
-----------------------------------------------------------------------
-- keystore-keys -- Keystore key management
-- Copyright (C) 2019 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 exce... |
with Text_Io; use Text_Io;
with Revisions; use Revisions;
procedure Test is
begin
Put_Line(BUILD_TIME);
Put_Line(REPO_URL);
Put_Line("Branch " & BRANCH_NAME );
Put_Line("Long Commit Id " & LONG_COMMIT_ID );
end Test ;
|
with Ada.Text_IO; use Ada.Text_IO;
with Sensors.Images;
procedure Sensors.Tests.Main is
use Sensors.Images;
S : constant Sensors.Instance := Get_Instance;
begin
Put_Line (Sensors.Version);
for chip of S.Detected_Chips loop
Put_Line (Image (chip));
-- for Sensor of Chip loop
-- null;
... |
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 Zane Myers
--
-- 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 witho... |
package gel.Camera.forge
--
-- Provides constructors for a camera.
--
is
function new_Camera return gel.Camera.item;
function new_Camera return gel.Camera.view;
end gel.Camera.forge;
|
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- This spec has been automatically generated from STM32F427x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
with HAL;
package STM32_SVD.Ethernet is
pragma Preelaborate;
---------------
-- Registers --
---------------
--------------------
-- MACCR_Register --
---... |
pragma Style_Checks ("NM32766");
pragma Wide_Character_Encoding (Brackets);
---------------------------------------------------
-- This file has been generated automatically from
-- cbsg.idl
-- by IAC (IDL to Ada Compiler) 19.0w (rev. e4bac8d9).
with PortableServer;
with CORBA;
pragma Elaborate_All (CORBA);
packa... |
with Ada.Command_Line;
with Ada.Text_IO;
procedure Test is
Iterations : Positive := Positive'Value
(Ada.Command_Line.Argument (1));
protected Buffer is
entry Put (X : in Boolean);
entry Get (X : out Boolean);
private
Value : Boolean;
Full : Boolean := False;
end Buffer;
p... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
with Pack16_Pkg; use Pack16_Pkg;
procedure Pack16 is
type Sample_Table_T is array (1 .. N) of Integer;
type Clock_T is record
N_Ticks : Integer := 0;
end record;
type Sampling_Descriptor_T is record
Values : Sample_Table_T;
Valid : Bo... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- wrap_resources_example.adb
-- An example of using the Wrap_C_Resources package
-- Copyright (c) 2016, James Humphry
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice ... |
-----------------------------------------------------------------------
-- EL.Expressions -- Expression Nodes
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not ... |
package Deferred_Const3_Pkg is
C : constant Natural := 1;
C1 : constant Natural := 1;
for C1'Address use C'Address;
C2 : constant Natural;
for C2'Address use C'Address;
C3 : constant Natural;
procedure Dummy;
private
C2 : constant Natural := 1;
C3 : constant Natural := 1;
for C3'Address use C... |
with Screen_Parameters; use Screen_Parameters;
with Giza.Colors;
with Giza.Types; use Giza.Types;
with Giza.Backend;
use Giza;
package Screen_Interface is
subtype Parent is Backend.Instance;
type GTKada_Backend is new Parent with record
Enabled : Boolean := True;
end record;
overriding
function ... |
-- { dg-do compile }
-- { dg-options "-O3" }
-- { dg-options "-O3 -msse" { target i?86-*-* x86_64-*-* } }
package body Loop_Optimization7 is
function Conv (A : Arr) return Arr is
Result : Arr;
begin
for I in A'Range loop
Result (I) := Conv (A (I));
end loop;
return Result;
end;
end Loop_O... |
--
-- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Graphics;
with Bitmaps;
package Game is
procedure Initialize;
procedure HBlank (Y : Graphics.Row);
procedure VBlank (N : Graphics.Frame_Number);
private
type Screen_Coordinate is record
... |
with System;use System;
package Bcontrol is
--type Command_Type is new String(1..3);
type Command_Type is (BLE, BLS, BRS, EMS, STR, STP);
protected type Command_Access is
procedure Send( Cmd: Command_Type);
entry Receive(Cmd : out Command_Type);
private
Command : Command_Type;
New_C... |
-- 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.Assertions;
use AUnit.Assertions;
with Regex.Utilities.Sorted_Sets;
package body Utilities_Test_Cases is
package Integer_Sets... |
-- Abstract :
--
-- Utilities for navigating syntax trees produced by an LR parser.
--
-- Copyright (C) 2019 Stephen Leake All Rights Reserved.
--
-- 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 Fo... |
with Ada.Text_IO, Word_Wrap, Ada.Strings.Unbounded, Ada.Command_Line;
procedure Wrap is
use Ada.Strings.Unbounded;
Line: Unbounded_String;
Word: Unbounded_String;
function "+"(S: String) return Unbounded_String renames To_Unbounded_String;
function "-"(U: Unbounded_String) return String renames To_S... |
with Protypo.API.Consumers;
with Protypo.API.Symbols;
with Protypo.Api.Engine_Values;
private with Protypo.Code_Trees;
with Utilities;
package Protypo.API.Interpreters is
type Template_Type is new String;
type Compiled_Code is limited private;
procedure Dump (X : Compiled_Code);
-- Print a tree represe... |
with Interfaces.C, Interfaces.C.Pointers;
package Numerics.Sparse_Matrices.CSparse is
------- Define Matrix --------------------------------------------
type LU_Type is private;
------ Basic Getter function ------------------------------------
function N_Col (LU : in LU_Type) return Pos;
----... |
with Regions.Contexts;
with Regions.Entities.Packages;
with Regions.Environments.Factories;
package body Regions.Tests is
procedure Symbol_Exists
(Region : Regions.Region'Class;
Symbol : Regions.Symbols.Symbol;
Expect : Boolean)
is
Has_Symbol : Boolean := False;
begin
for X in R... |
with Ada.Text_IO;
use Ada.Text_IO;
with Dates;
use Dates;
procedure Exemple_Dates is
Une_Date : T_Date;
begin
-- Initialiser une date
Initialiser (Une_Date, 1, OCTOBRE, 2018);
-- L'afficher
Afficher (Une_Date);
New_Line;
end Exemple_Dates;
|
with ACO.Configuration;
with ACO.Drivers;
with ACO.Events;
with ACO.Messages;
with Ada.Finalization;
with Ada.Real_Time; use Ada.Real_Time;
private with ACO.Messages.Buffer;
private with Ada.Synchronous_Task_Control;
package ACO.CANopen is
type Handler_Base
is abstract new Ada.Finalization.Limited_Controlled w... |
-- 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... |
-- 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,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.