content stringlengths 23 1.05M |
|---|
-----------------------------------------------------------------------
-- net-interfaces -- Network interface
-- 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 in... |
Function EPL.Bracket( Data : String; Style : Bracket ) return String is
Use Ada.Strings;
Brackets : constant Array( EPL.Types.Bracket , Ada.Strings.Alignment ) of Character :=
( others => (Others => ':') );
--LB
Begin
Return Data; --LB & Data $ RB;
End EPL.Bracket;
|
package body Test_Node.Read is
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "Test_Node.Read");
Ahven.Framework.Add_Test_Routine (T, Node_1'Access, "1. node: id = 23");
Ahven.Framework.Add_Test_Routine (T, Node_2'Access, "2. node: id = 42");
Ahven.Framework.Add_Test_Routine... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package body YAML.Vector is
overriding
function Get (Item : in Instance;
Name : in String) return Parent_Class is
pragma Unreferenced (Item, Name);
begin
return raise Constraint_Error with "YAML.Object uses index-based look-up.";
end Get;
overriding
function Get (Item :... |
-- { dg-do run }
-- { dg-options "-flto" { target lto } }
-- { dg-excess-errors "does not match original declaration" }
with Lto20_Pkg;
procedure Lto20 is
begin
Lto20_Pkg.Proc (Lto20_Pkg.Null_Arr);
end;
|
package openGL.Model.hexagon
--
-- Provides an abstract model of a hexagon.
--
is
type Item is abstract new openGL.Model.item with -- TODO: Make private.
record
Radius : Real := 1.0;
end record;
subtype site_Id is Integer range 1 .. 6;
type Sites is array (site_Id) of Vector_3;... |
with Ada.Containers;
with Ada.Strings.Hash;
with Ada.Strings.Wide_Hash;
with Ada.Strings.Wide_Wide_Hash;
procedure hash is
use type Ada.Containers.Hash_Type;
type HA is array (Positive range <>) of Ada.Containers.Hash_Type;
D : HA := (
Ada.Strings.Hash ("abcdefg"),
Ada.Strings.Hash ("ab"),
Ada.Strings.Hash ("b... |
private with path_h;
package Libtcod.Maps.Paths is
type Path is limited private;
type Cost is new Float;
type Index is range 0 .. Integer'Last;
function make_path(m : Map; diagonal_cost : Cost) return Path;
function compute(p : in out Path; start_x : X_Pos; start_y : Y_Pos;
en... |
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Characters;
with Ada.Characters.Latin_1;
with Stopwatch;
procedure main is
Ch : Character;
Want_Freeze_Display : Boolean := False;
begin
Put_Line
("Press space to display lap, any other key to start/stop stopwatch");
Ada.Text_IO.Get_Immediate (Ch);
-- ... |
-----------------------------------------------------------------------
-- gen-utils-gnat -- GNAT utilities
-- Copyright (C) 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 use this file except... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with
any_Math.any_fast_Rotation;
package float_Math.fast_Rotation is new float_Math.any_fast_Rotation;
|
-----------------------------------------------------------------------
-- gen-artifacts-distribs -- Artifact for distributions
-- Copyright (C) 2012, 2013, 2015, 2020, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="15">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="... |
-- 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... |
with Ada.Text_IO; use Ada.Text_IO;
procedure abc is
A : Integer := 7;
B : Integer := 5;
D: Integer := B;
begin
Put_Line("Value of B: " & Integer'Image(B));
end abc;
|
package body openGL.Model.hexagon
is
function vertex_Sites (Radius : in Real) return Sites
is
use linear_Algebra_3d;
the_Site : Vector_3 := (Radius, 0.0, 0.0);
Rotation : constant Matrix_3x3 := y_Rotation_from (to_Radians (60.0));
the_Sites : Sites;
begin
... |
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- ... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Unchecked_Deallocation;
package body Yaml.Events.Context is
use type Store.Optional_Reference;
use type Text.Reference;
use type Store.Anchor_Cursor;
use type Store.Element_Curso... |
------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-- PR middle-end/35823
-- { dg-do compile ]
procedure Size_Attribute (Arg : in String) is
Size : constant Natural := Arg'Size;
begin
null;
end;
|
-- -----------------------------------------------------------------------------
-- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.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... |
package body Decomposition is
procedure Swap_Rows (M : in out Matrix.Real_Matrix; From, To : Natural) is
Temporary : Matrix.Real;
begin
if From = To then
return;
end if;
for I in M'Range (2) loop
Temporary := M (M'First (1) + From, I);
M (M'First (1) + From, I) ... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Text_IO;
package Yaml.Destination.Text_IO is
type Instance is new Destination.Instance with private;
function As_Destination (File : Ada.Text_IO.File_Access) return Pointer
w... |
-----------------------------------------------------------------------
-- log -- Log example
-- Copyright (C) 2010 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 compliance with ... |
package Discr23_Pkg is
subtype Size_Range is Positive range 1 .. 256;
type Text (Size : Size_Range) is
record
Characters : String( 1.. Size);
end record;
function Get return Text;
end Discr23_Pkg;
|
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
with Ada.Command_line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
procedure Print_Commands is
begin
-- The number of command line arguments is retrieved from the function Argument_Count
-- The actual arguments are retrieved from the function Argument
-- The program name is retrieved from the fun... |
-- { dg-do compile }
-- { dg-options "-O" }
with Return2_Pkg; use Return2_Pkg;
package body Return2 is
function Value_Internal (Image : String) return Result_Internal_T is
begin
return (Member => False);
end;
type Result_T is array (1 .. 2) of Result_Internal_T;
function Value (Img : String) return T... |
-----------------------------------------------------------------------
-- servlet-rest -- REST Support
-- 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 in compli... |
with Ada.Calendar;
with Ada.Calendar.Formatting;
with Ada.Calendar.Time_Zones;
with Ada.Integer_Text_IO;
with Ada.Text_IO;
procedure Date_Manipulation is
type Month_Name_T is
(January, February, March, April, May, June,
July, August, September, October, November, December);
type Time_Zone_Name_T is ... |
with Ada.Finalization;
with Interfaces;
with kv.avm.references; use kv.avm.references;
with kv.avm.Instructions;
with kv.avm.Registers;
with kv.avm.Memories;
with kv.avm.Actor_References;
with kv.avm.Actor_References.Sets;
with kv.avm.Tuples;
package kv.avm.Frames is
Program_Counter_Error : exception;
Invalid_... |
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.I2C is
pragma Preelaborate;
... |
-- { dg-do run }
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure array3 is
type Method_Kinds is (Signal, Slot, Method);
package Unbounded_String_Vectors is
new Ada.Containers.Vectors
(Positive, Ada.Strings.Unbounded.Unbounded_String);
Param... |
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
package body Word_Lists is
procedure Add_Word (List: in out Word_List_Type;
Word: in ASU.Unbounded_String) is
Aux: Word_List_Type;
Included: Boolean;
begin
Included := False;
if List = null then
List := new Cell;
List.Word := Word;
List.Cou... |
-------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- 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 Lic... |
with STM32_SVD.TIM;
with STM32_SVD; use STM32_SVD;
package STM32GD.Timer is
type Timer_Callback_Type is access procedure;
type Timer_Type is (Timer_2, Timer_3, Timer_4, Timer_5,
Timer_14, Timer_15, Timer_16, Timer_17);
end STM32GD.Timer;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Array_Selection is
type Array_Type is array (Positive range <>) of Integer;
function Evens (Item : Array_Type) return Array_Type is
Result : Array_Type (1..Item'Length);
Index : Positive := 1;
begin
for I in Item'Range loop
if Item (I)... |
--::::::::::
--cli.ads
--::::::::::
-- **************************************
-- * *
-- * CLI (Command Line Interface) * SPEC
-- * *
-- **************************************
package CLI is
--| Purpose
--| CLI is a package which implements ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body Test_Procs is
procedure Test1 (Params : Cmd_ada.Cb_Parameters.Vector) is
begin
Put_Line ("I got called with: ");
for P of Params loop
Put (To_String (P));
Put (" ");
... |
--
-- 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.
--
package body Readline_Helper is
type S... |
-----------------------------------------------------------------------
-- secret-tool -- Example of usage for the Secret service API
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not ... |
-- --
-- package Strings_Edit.Quoted Copyright (c) Dmitry A. Kazakov --
-- Implementation Luebeck --
-- Winter, 2004 --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with System.Storage_Elements;
with TLSF.Config;
with TLSF.Bitmaps;
with TLSF.Mem_Block_Size;
use TLSF.Config;
use TLSF.Bitmaps;
use TLSF.Mem_Block_Size;
private package TLSF.Mem_Blocks is
type Block_Status is (Free,
Occupied,
Absent)
with Size => 2;
-- Free... |
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
procedure grafico (n1: in Integer) is
begin
for filas in 1..n1 loop
for columnas in 1..n1 loop
if filas>=columnas then
put('*');
else
put('0');
end if;
end loop;
new_line;
end loop;
new_line;
end grafico;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Calendar.Formatting; use Ada.Calendar;
use Ada.Calendar.Formatting;
procedure Five_Weekends is
Months : Natural := 0;
begin
for Year in Year_Number range 1901..2100 loop
for Month in Month_Number range 1..12 loop
begin
if Day_O... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Containers;
with Fmt.Generic_Signed_Int_Argument;
package Fmt.Count_Argument is
new Fmt.Generic_Signed_Int_Argument(Ada.Containers.Count_Type);
|
--
-- Provides kafka functionality to interact with Topics
--
package Kafka.Topic is
--
-- Creates a handle for a given topic. Does not perform the admin command
-- to create a topic
--
-- librdkafka equivalent: rd_kafka_topic_new
--
function Create_Topic_Handle(Handle : Handle_Type;
... |
with
AdaM.Entity,
AdaM.Declaration.of_exception,
ada.Streams,
ada.Containers.Vectors;
limited
with
adam.Block;
package AdaM.exception_Handler
is
type Item is new Entity.item with private;
-- View
--
type View is access all Item'Class;
procedure View_write (Stream : not n... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with OpenGL.Thin;
package OpenGL.Error is
type Error_t is
(No_Error,
Invalid_Enum,
Invalid_Value,
Invalid_Operation,
Stack_Overflow,
Stack_Underflow,
Out_Of_Memory,
Invalid_Framebuffer_Operation,
Table_Too_Large);
for Error_t use
(No_Error => T... |
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with Ada.Numerics.Elementary_Functions;
package body PixelArray is
procedure Free_Pixel_Buffer is new Ada.Unchecked_Deallocation(Object => Pixel_Buffer,
Name => Pixel_Buffer_Access);
function al... |
-----------------------------------------------------------------------
-- components -- Component tree
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ma... |
-- 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... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Source_Buffers;
package Program.Scanner_Destinations is
pragma Pure;
subtype Token... |
-- Copyright (c) 2019-2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Calendar.Formatting;
with Ada.Calendar;
with Ada.Containers;
with Ada.Directories;
with Ada.Wide_Wide_Text_IO;
with GNA... |
with Ada.Text_Io;
use Ada.Text_Io;
procedure Loop_For is
type Day_Type is (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday);
Day : Day_Type := Day_Type'First;
begin
loop
Put_Line(Day'Img);
if Day = Day_Type'Last then
exit;
else
Day := Day_Type'Succ(Day);
end if;
end lo... |
-- part of FreeTypeAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Finalization;
with Interfaces.C;
with System;
private with Interfaces.C.Strings;
package FT is
pragma Preelaborate;
-- reference-counted smart pointer
type Library_Reference is n... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Generic_Vectors is
------------
-- Create --
------------
function Create
(Each : Progra... |
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
package body Notcurses.Visual is
function From_Bitmap
(Bitmap : RGBA_Bitmap)
return Notcurses_Visual
is
use Interfaces.C;
Rows : constant int := int (Bitmap'Last (1) - Bitmap'First (1) + 1);
Columns : constant int := int (Bitmap'La... |
-----------------------------------------------------------------------
-- mat-readers-streams -- Reader for streams
-- Copyright (C) 2014, 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 fi... |
-- This spec has been automatically generated from STM32L4x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.EXTI is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- IMR1_MR array
type IMR... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Calendar;
package Tabula.Debug is
procedure Hook (
Name : not null Static_String_Access;
Time : in Ada.Calendar.Time);
end Tabula.Debug;
|
package body ACO.Utils.DS.Generic_Collection.Sorted is
overriding
procedure Insert
(C : in out Sorted_Collection;
Item : in Item_Type)
is
P : Collection renames Collection (C);
begin
for Index in 1 .. Length (P) loop
if not (Item_At (P, Index) < Item) then
... |
with text_io;
with MatrixMult;
procedure AssignmentMain is
use text_io;
package int_io is new integer_io(integer);
use int_io;
use MatrixMult;
A,B,C : Matrix;
task Reader1 is
entry Read1;
end Reader1;
task Reader2 is
entry Read2;
end Reader2;
task Printer is
entry Print... |
-- Prints a graphviz version of a directory tree.
with Ada.Command_Line;
with Ada.Text_IO;
with DTG;
procedure Dir_To_Graphviz is
package ACL renames Ada.Command_Line;
package AIO renames Ada.Text_IO;
begin
if ACL.Argument_Count = 0 then
AIO.Put_Line ("No arguments provided.");
AIO.Put_Li... |
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- The primary authors of ayacc were David Taback and Deepak Tolani.
-- Enhancements were made by Ronald J. Schmalz.
--
-- Send requests for ayacc information to ayacc-info@ics.uci.edu
-- Send bug reports for ayacc to ... |
--------------------------------------------------------------------------------
-- Fichier : arbre_binaire.ads
-- Auteur : MOUDDENE Hamza & CAZES Noa
-- Objectif : Spécification du module Arbre_Binaire.
-- Créé : Dimanche Nov 25 2019
--------------------------------------------------------------------------... |
pragma License (Unrestricted); -- Apple Public Source License Version 2.0
-- translated unit from http://www.opensource.apple.com/
-- source/xnu/xnu-1504.15.3/bsd/vfs/vfs_utfconvdata.h (a part of darwin)
--
-- Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
--
-- @APPLE_OSREFERENCE_LICENSE_HEADE... |
with HAL; use HAL;
with HAL.SPI;
with STM32.Device; use STM32.Device;
with STM32.SPI; use STM32.SPI;
package STM32.SubGhzPhy is
SubGhzPhyPort : constant access SPI_Port := SPI_3'Access;
procedure SubGhzPhy_Init;
end STM32.SubGhzPhy;
|
-- 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
Test_Ashell,
Test_Command_Error,
Test_Command_Output_To_String,
Test_Environment,
Test_Iterate_Directory,
Test_Piped_Processes,
Test_Pipeline_Error,
Test_Pipeline_Output,
Test_Pipe_Output_To_String,
Test_Wait_On_Process,
Ada.Text_IO;
procedure Test_All
is
... |
-- 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.USB_FS is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype USB_EP0R_EA_Field ... |
with TEXT_IO;
package DEVELOPER_PARAMETERS is
-- These are a few strange declarations to be used in diagnostics;
SRA_MAX, SRAA_MAX, DMA_MAX : INTEGER := 0;
PA_LAST_MAX, FINAL_PA_LAST_MAX : INTEGER := 0;
-- This package defines a number of parameters that areused in the program
-- The default values a... |
-- ----------------------------------------------------------------- --
-- --
-- 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 Ada.Text_IO, Ada.Command_Line;
procedure Eratos is
Last: Positive := Positive'Value(Ada.Command_Line.Argument(1));
Prime: array(1 .. Last) of Boolean := (1 => False, others => True);
Base: Positive := 2;
Cnt: Positive;
begin
loop
exit when Base * Base > Last;
if Prime(Base) then
... |
package Aggr14_Pkg is
type A is array (Integer range 1 .. 3) of Short_Short_Integer;
X : A := (1, 2, 3);
procedure Proc;
end Aggr14_Pkg;
|
with AUnit.Assertions; use AUnit.Assertions;
with Libadalang.Analysis; use Libadalang.Analysis;
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation; use Rejuvenation;
with Rejuvenation.Replacer; use Rejuvenation.Replacer;
with Rejuvenation.Simple_Factory; u... |
-- Copyright 2020-2021 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.
--
-- ... |
with Ada.Containers; use Ada.Containers;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Cmd_ada is
package Cb_Parameters is new Ada.Containers.Vectors
(Index_Type => Natural, Element_Type => Unbounded_String);
type Proc_Callback is access procedure (Param... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with ada.text_io;
with interfaces.c;
package body slider_callbacks is
package io renames ada.text_io;
package c renames interfaces.c;
use type agar.core.types.integer_t;
-- initialise slider array
procedure init (window : gui_window.window_access_t) is
begin
for index in sliders'range loop
-- s... |
-- -*- Mode: Ada -*-
-- Filename : s-secsta.adb
-- Description : Secondary stack
-- Author : Luke A. Guest
-- Created On : Wed Nov 16 17:06:31 2016
-- Licence : See LICENCE in the root directory.
package body System.Secondary_Stack is
procedure SS_Al... |
--
-- 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 Opt8; use Opt8;
package Opt8_Pkg is
function Id_To_VN (Id: Value_Number_Id) return Value_Number;
end Opt8_Pkg;
|
----------------------------------------
-- Copyright (C) 2019 Dmitriy Shadrin --
-- All rights reserved. --
----------------------------------------
with Pal;
with Ada.Finalization;
with Ada.Strings.Unbounded; --use Ada.Strings.Unbounded;
----------------------------------------------------------------... |
package Units with
Spark_Mode is
type Unit_Type is new Float with -- As tagged Type? -> Generics with Unit_Type'Class
Dimension_System =>
((Unit_Name => Meter, Unit_Symbol => 'm', Dim_Symbol => 'L'),
(Unit_Name => Kilogram, Unit_Symbol => "kg", Dim_Symbol => 'M'),
(Unit_Na... |
-----------------------------------------------------------------------
-- schemas Tests -- Test loading of database schema for MySQL
-- 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 Ada.Strings.Naked_Maps.Canonical_Composites;
with Ada.Strings.Naked_Maps.Case_Folding;
with Ada.Strings.Naked_Maps.Case_Mapping;
with Ada.Strings.Naked_Maps.General_Category;
with Ada.Strings.Naked_Maps.Set_Constants;
package body Ada.Characters.Handling is
function Overloaded_Is_Basic (Item : Wide_Character) ... |
package body Generic_List is
-- Implement a subprogram to add items to the list
-- procedure Add (This : in out List_T;
-- Item : in ?
procedure Sort (This : in out List_T) is
begin
null;
end Sort;
end Generic_List;
|
-- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Martin Becker (becker@rcs.ei.tum.de>
with Units;
-- @summary
-- Target-independent specification for simple HIL of Piezo Buzzer
package HIL.Buzzer with SPARK_Mode is
procedure I... |
-- A SPARK wrapper for some elementary functions.
-- The PolyPaver SPARK pre-processor will replace any call
-- of these functions with their equivalent from package
-- PP_F_Rounded, supplying a value for the additional Prec parameter.
package PP_F_Elementary is
function Pi return Float;
function Exp (X : Float... |
-- { dg-do run }
-- { dg-options "-O2 -gnatn" }
with Aliasing3_Pkg; use Aliasing3_Pkg;
procedure Aliasing3 is
begin
Pointer.A(1) := 5;
Test (Block.A);
end;
|
package body Opt12_Pkg is
function Equal (L, R: Static_Integer_Subtype) return Boolean is
begin
return (L = R);
end;
end Opt12_Pkg;
|
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+owm@heisenbug.eu)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Ho... |
package CONFIG is
OUTPUT_SCREEN_SIZE : INTEGER := 20;
type CONFIGURATION_TYPE is (DEVELOPER_VERSION, USER_VERSION, ONLY_MEANINGS);
CONFIGURATION : CONFIGURATION_TYPE := DEVELOPER_VERSION;
type METHOD_TYPE is (INTERACTIVE, COMMAND_LINE_INPUT, COMMAND_LINE_FILES);
M... |
with System.Address_To_Constant_Access_Conversions;
with System.Address_To_Named_Access_Conversions;
package body System.Zero_Terminated_Strings is
pragma Suppress (All_Checks);
use type C.size_t;
function strlen (s : not null access constant C.char) return C.size_t
with Import,
Convention => I... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.