content stringlengths 23 1.05M |
|---|
--
-- Copyright (C) 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.
--
-- This ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- Ada Keywords
abort abs abstract accept access aliased all and array at
begin body
case constant
declare delay delta digits do
else elsif end entry exception exit
for function
generic goto
if in interface is
limited loop
mod
new not null
of or others out overriding
package pragma private procedure protected
raise ran... |
with Giza.Widget;
with Test_Tiles_Window; use Test_Tiles_Window;
with Giza.Types; use Giza.Types;
use Giza;
------------------------
-- Test_Scroll_Window --
------------------------
package body Test_Scroll_Window is
-------------
-- On_Init --
-------------
overriding procedure On_Init
(This : in... |
with Ada.Real_Time;
package body STM32.OPAMP is
------------
-- Enable --
------------
procedure Enable (This : in out Operational_Amplifier) is
use Ada.Real_Time;
begin
This.CSR.OPAEN := True;
-- Delay 4 us for OPAMP startup time. See DS12110 Rev 8 chapter 7.3.27
-- Operatio... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
with Ada.Streams;
with Ada.Text_IO;
with Crypto.SHA512; use Crypto.SHA512;
procedure Test_SHA512 is
procedure Test_01 is
use type Ada.Streams.Stream_Element_Array;
C : Context := Initial;
D : Fingerprint;
begin
Update (C, "a");
Final (C, D);
pragma Assert (
Image (D) =
"1f40fc92da241694750979ee6cf5... |
-----------------------------------------------------------------------
-- el-functions -- Functions to be plugged in expressions
-- Copyright (C) 2009, 2010, 2012, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
--... |
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Ordered_Sets;
with Ada.Containers.Vectors;
with Ada.Strings.Hash;
with Ada.Text_IO;
with GNAT.String_Split;
package body AOC.AOC_2019.Day06 is
type Planet is new String (1..3);
function Orbit_Maps_Hash (Key : Planet) return Ada.Containers.Hash_Type is
b... |
with Ada.Text_IO;
-- This package is introduced to provide an exception free API
-- for text file input. The subprograms in the Ada.Text_IO package
-- may raise exceptions and they are therefore hidden in the body
-- of this package. A subprogram contains a declarative part and
-- and executable part:
--
-- proc... |
with Ada.Exception_Identification.From_Here;
with Ada.Hierarchical_File_Names;
with System.Address_To_Named_Access_Conversions;
with System.Zero_Terminated_Strings;
with C.errno;
with C.stdlib;
with C.unistd;
package body System.Native_Directories.Temporary is
use Ada.Exception_Identification.From_Here;
use type ... |
package body Colors is
procedure Add
(Set : in out Color_Set_T;
Color : Color_T) is
begin
null;
end Add;
procedure Remove
(Set : in out Color_Set_T;
Color : Color_T) is
begin
null;
end Remove;
function Image
(Set : Color_Set_T)
return ... |
with System;
with Ada.Text_IO;
procedure Impbit is
begin
Ada.Text_IO.Put_Line (System.Address'Size'Img);
end Impbit;
|
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
with Ada.Text_IO;
procedure Test_For_Primes is
type Pascal_Triangle_Type is array (Natural range <>) of Long_Long_Integer;
function Calculate_Pascal_Triangle (N : in Natural) return Pascal_Triangle_Type is
Pascal_Triangle : Pascal_Triangle_Type (0 .. N);
begin
Pascal_Triangle (0) := 1;
for... |
with Trendy_Terminal.Histories;
with Trendy_Terminal.Lines.Line_Vectors;
with Trendy_Test.Assertions;
with Trendy_Test.Assertions.Integer_Assertions;
use Trendy_Test.Assertions;
use Trendy_Test.Assertions.Integer_Assertions;
package body Trendy_Terminal.Histories.Tests is
procedure Assert_Contains
(Op ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
package bits_types_u_locale_t_h is
-- Definition of struct __locale_struct and __locale_t.
-- Copyright (C) 1997-2021 Free Software Foundation, Inc.
-- This file is part of the GNU C Library.
-- ... |
-- Generated at 2015-03-31 18:55:08 +0000 by Natools.Static_Hash_Maps
-- from src/natools-s_expressions-conditionals-strings-maps.sx
function Natools.Static_Maps.S_Expressions.Conditionals.Strings.T
return Boolean;
pragma Pure (Natools.Static_Maps.S_Expressions.Conditionals.Strings.T);
|
-- C45252A.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... |
with System;
package STM32F4xx is
Flash_Base : constant := 16#0800_0000#;
VECT_TAB_OFFSET : constant := 16#00#;
Peripherals : constant := 16#4000_0000#;
type Uint8 is range 0 .. 255;
for Uint8'Size use 8;
type Uint32 is mod 2 ** 32;
type UInt8_Array is array (Positive range <>) of Uint8;
ty... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Containers.Indefinite_Holders;
with Ada.Strings.Maps.Constants; use Ada.Strings.Maps.Constants, Ada.Strings.Maps;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
--
--
-- Syntax:
--
-- line = [header] parameter ("," parameter)*
-- header ... |
-- { dg-do compile }
procedure Protected_Self_Ref2 is
protected type P is
procedure Foo;
end P;
protected body P is
procedure Foo is
D : Integer;
begin
D := P'Digits; -- { dg-error "denotes current instance" }
end;
end P;
begin
null;
end Protected_Self_Ref2;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with
any_Math;
package long_Math is new any_Math (Real_t => long_Float);
pragma Pure (long_Math);
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma Check_Policy (Validate => Disable);
-- with Ada.Strings.Naked_Maps.Debug;
with Ada.UCD.Case_Folding;
with System.Once;
with System.Reference_Counting;
package body Ada.Strings.Naked_Maps.Case_Folding is
use type UCD.Difference_Base;
use type UCD.UCS_4;
procedure Decode (
Mapping : in out Charact... |
------------------------------------------------------------------------------
-- Copyright (c) 2016-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with gnatcoll.SQL.Postgres; use gnatcoll.SQL.Postgres;
with gnatcoll.SQL.Exec; use gnatcoll.SQL.Exec;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Dbase is
-- pragma Pure (Message);
Version : constant String := "0.0.1";
DB : Database_Connection;
DB_Background : Databas... |
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N... |
-----------------------------------------------------------------------
-- awa-questions-modules -- Module questions
-- Copyright (C) 2012, 2013, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
--
-- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Graphics;
package Bitmaps is
Width : constant := 8;
Height : constant := 8;
-- All bitmaps are stored as row-major, 2-bit per pixel color value. The
-- actual display color is determined by... |
--------------------------------------------------------------------------------
-- 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... |
-- Copyright (c) 2017, Leo Brewin <Leo.Brewin@monash.edu>
--
-- 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 appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" A... |
with Ada.Containers; use Ada.Containers;
with Ada.Containers.Formal_Ordered_Maps;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Strings; use Ada.Strings;
with Ada.Text_IO; use Ada.Text_IO;
with Algebra; ... |
-- Copyright (c) 2019-2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Exceptions;
with Ada.Unchecked_Conversion;
with Interfaces;
with GNAT.SHA1;
with Torrent.Downloaders;
with Torrent.Ha... |
------------------------------------------------------------------------------
-- Copyright (c) 2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package body calc with SPARK_Mode is
procedure Forgetful_Assert (X, Y : out Integer) with
SPARK_Mode
is
begin
X := 1;
Y := 2;
pragma Assert (X = 1);
pragma Assert (Y = 2);
pragma Assert_And_Cut (X > 0); -- also forgets about Y
pragma Assert (Y = 2);
pragma A... |
with Interfaces.C;
private with color_h;
package Libtcod.Color is
type RGB_Component is new Interfaces.C.unsigned_char;
type Alpha is new Interfaces.C.unsigned_char;
type Hue is new Float range 0.0 .. 360.0;
type Saturation is new Float range 0.0 .. 1.0;
type Value is new Float range 0.0 .. 1.0;
typ... |
-- { dg-do compile }
with Text_IO; use Text_IO;
procedure Deferred_Const1 is
I : Integer := 16#20_3A_2D_28#;
S : constant string(1..4);
for S'address use I'address; -- { dg-warning "constant overlays a variable" }
pragma Import (Ada, S);
begin
Put_Line (S);
end;
|
-- 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... |
with Ada.Exceptions;
package Exception_Declarations is
Value_Exceed_Max : Exception;
Value_Exceed_Min : Exception;
Excecution_Time_Overun : Exception;
-- Gyro_Not_Available : Exception;
--Acc_Not_Available : Exception;
-- Like an object. *NOT* a type !
end Exception_Declarat... |
with Racionalisok, Ada.Integer_Text_IO, Ada.Text_IO;
use Racionalisok, Ada.Integer_Text_IO, Ada.Text_IO;
procedure RacionalisDemo is
X: Racionalis := 1/2;
Y: Racionalis := 3/5;
R: Racionalis := 1/1;
-- X: Racionális := 3/4/5;
begin
--R := R / (R/2);
--Put( Szamlalo(R) );
--... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
procedure Bit_Packed_Array2 is
type Bit_Array is array (integer range <>) of Boolean;
pragma Pack(Bit_Array);
b1 : Bit_Array(1..64);
b2 : Bit_array(1..64);
res : Bit_array(1..64);
begin
if (not((not b1) or (not b2))) /= res then
null;
end if;
e... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package bmiintrin_h is
-- Copyright (C) 2010-2017 Free Software Foundation, Inc.
-- This file is part of GCC.
-- GCC is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public L... |
with Ada.Containers.Indefinite_Hashed_Maps,
Ada.Containers.Indefinite_Hashed_Sets,
Ada.Containers.Indefinite_Vectors,
Ada.Containers.Synchronized_Queue_Interfaces,
Ada.Containers.Unbounded_Synchronized_Queues,
Ada.Execution_Time,
Ada.Integer_Text_IO,
Ada.Real_Time,
Ada.Strings.Fi... |
package Packet is
Sensor_Reading_Tag : constant Natural := 6;
Voltage_Tag : constant Natural := 7;
Temperature_Tag : constant Natural := 8;
Humidity_Tag : constant Natural := 9;
Pressure_Tag : constant Natural := 10;
Lux_Tag : constant Natural := 11;
UV_Index_Tag ... |
--
-- 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 Sessions;
with Configs;
with Rules;
w... |
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Calendar;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded;
with Tabula.Calendar;
with Tabula.Casts;
with Tabula.Villages;
package Vampire.Villages is
use Tabula.Villages;
Default_Long_Day_Duration : constant Duration := 2 * 24 * 60 * 60 * 1.0;
Defau... |
--
-- Copyright (c) 2007-2011 Tero Koskinen <tero.koskinen@iki.fi>
--
-- Permission to use, copy, modify, and distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS... |
-- part of ParserTools, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Unchecked_Deallocation;
package body Lexer.Base is
procedure Free is new Ada.Unchecked_Deallocation
(String, Buffer_Type);
subtype Line_End is Character with Static_Predicate... |
with Ada.Text_IO; use Ada.Text_IO;
procedure adademo2 is
type Day_type is range 1 .. 31;
type Month_type is range 1 .. 12;
type Year_type is range 1800 .. 2100;
type Hours is mod 24;
type Weekday is
(Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday);
type Date is record
Day ... |
with External; use External;
package Logger is
task type LoggerReceiver is
entry Log(message: String);
entry Stop;
end LoggerReceiver;
type pLoggerReceiver is access LoggerReceiver;
end Logger;
|
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp.Test_Event_Class.Generic_Assert_Num_Mixin is
----------------------------------------------------------------------------
overriding
procedure Set (Obj : in out Child_W_Assert_Num; D... |
-- -*- Mode: Ada -*-
-- Filename : ether.adb
-- Description : Body root of the Ether SCGI library.
-- Author : Luke A. Guest
-- Created On : Thu May 3 15:32:35 2012
with Ada.Directories;
package body Ether is
procedure Initialise
(Bytes : in Posit... |
with QtQuick; use QtQuick;
procedure Hello is
begin
Qt_Main ("hello.qml");
end Hello;
|
-- { dg-do compile }
procedure Discr5 is
type Enum is (Ten, Twenty);
for Enum use (10, 20);
type Arr is array (Enum range <>) of Integer;
type Rec (Discr: Enum := Ten) is record
case Discr is
when others =>
A: Arr (Ten .. Discr);
end case;
end record;
begin
null;
en... |
package HTTPd is
pragma Pure;
Host : constant String := "localhost";
Port : constant := 8080;
end HTTPd;
|
package body Ada.Text_IO.Terminal.Colors is
function "+" (Item : Boolean) return Boolean_Parameter is
begin
return (Changing => True, Item => Item);
end "+";
function "+" (Item : Color) return Color_Parameter is
begin
return (Changing => True, Item => Item);
end "+";
procedure Set_Co... |
with Ada.Finalization; use Ada.Finalization;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Containers.Vectors; use Ada.Containers;
with Distribution; use Distribution;
with Util; use Util;
-- Base package for memory components.
-- This package has prototypes for simulating and generating VHDL.
pack... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package physics.Joint.hinge
--
-- An interface to a hinge joint.
--
is
type Item is limited interface
and Joint.item;
type View is access all Item'Class;
procedure Limits_are (Self : in out Item; Low, High : in Real;
Softness :... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
procedure Reversal (T: in out Tomb) is
I : Index := T'First;
J : Index := T'Last;
begin
for S in 1 .. (T'Length / 2) loop
Swap(T(I), T(J));
I := Index'Succ(I);
J := Index'Pred(J);
end loop;
end Reversal;
-- http://zsv.web.elte.hu/ada_regizhk/
-- http://zsv.web.elte.hu/ada_regizhk/regizh... |
-- Concurrency can be offered by the OS, the language, or a combination
-- Link to some papers that say that threading can't be a library.
-- Ousterhout has an interesting paper here that shows that you can't guarantee pthreads correctness.
-- Processes offer protection but are too heavy-weight.
-- Compiler must take c... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Fixed;
package body Aids.Env is
Function Find(Env : in Typ;
Key : in String;
Found : in out Boolean
) return String is
Begin
Found := Env.Contains( Key );
Return (if not Found then "" e... |
private with Interfaces.C;
package GNATCOLL.uuid is
type UUID_Variant is (NCS, DCE, MICROSOFT, OTHER);
type UUID_Type is (DCE_TIME, DCE_RANDOM, DCE_UNDEFINED);
type UUID is tagged private;
procedure Clear (this : in out UUID);
function "<" (l, r : UUID) return Boolean;
function ">" (l, r : UUID) r... |
-- { dg-compile }
-- { dg-options "-O2 -gnato -fdump-tree-optimized" }
package body Opt37 is
function To_Unchecked (Bits : T_Bit_Array) return Unsigned32 is
Value : Unsigned32 := 0;
begin
for I in Bits'Range loop
Value := Value * 2 + Unsigned32 (Bits(I));
end loop;
return Value;... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
pragma Style_Checks (Off);
-- This spec has been automatically generated from ATSAMD51G19A.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package SAM_SVD.CCL is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Control
type CCL_CTRL_Register is reco... |
with Ada.Directories;
with Ada.Text_IO;
with SDL.RWops.Streams;
procedure Rwops is
package Text_IO renames Ada.Text_IO;
package Directories renames Ada.Directories;
procedure RWops_Tests is
begin
declare
use type SDL.RWops.Offsets;
Op : constant SDL.RWops.RWops := SDL.RWops.Fr... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package STM32GD.Clock is
pragma Preelaborate;
type Clock_Type is (SYSCLK, PCLK1, PCLK2, MSI, HSI, LSI, LSE, HCLK, PLLCLK, RTCCLK);
type PLL_Source_Type is (HSI, HSE);
type RTC_Source_Type is (LSE, HSE, LSI);
type SYSCLK_Source_Type is (PLL, HSI, HSE, MSI);
subtype MSI_Range is Integer range 1024 *... |
------------------------------------------------------------------------------
-- --
-- Hardware Abstraction Layer for STM32 Targets --
-- --
-- ... |
generic
type Item is digits <>;
type Items_Array is array (Positive range <>) of Item;
function Generic_Max (List : Items_Array) return Item;
|
-- { dg-do compile }
-- { dg-options "-O3" }
package body Loop_Optimization1 is
procedure Create (A : in out D; Val : Integer) is
M : constant Group_Chain_List := Group_Chains(Val);
G : constant Group_List := Groups(Val);
function Is_Visible (Group : Number) return Boolean is
begin
... |
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Integer_Text_Io; use Ada.Integer_Text_Io;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
package body Messages is
-----------
-- Print --
-----------
procedure Print (Item : Message) is
The_Year : Year_Number;
The_Month : Month_Number;
The_Day... |
with
AdaM.a_Type.enumeration_type,
Glib,
Glib.Error,
Gtk.Builder,
Gtk.Handlers;
package body aIDE.Editor.of_enumeration_literal
is
use Gtk.Builder,
Glib,
glib.Error;
function on_name_Entry_leave (the_Entry : access Gtk_Entry_Record'Class;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Iterator_Interfaces;
package Program.Interpretations.Expressions is
pragma Preelaborate;
type Cursor is private;
function Type_View (Se... |
-- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O G... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
with GPIO;
with SPI;
with Interfaces; use Interfaces;
with Ada.Text_IO;
package body OLED_SH1106.Display is
procedure Reset is
begin
GPIO.Write(OLED_RST, 1);
delay 0.1;
GPIO.Write(OLED_RST, 0);
delay 0.1;
GPIO.Write(OLED_RST, 1);
delay 0.1;
end Reset;
procedure Write_Reg(Reg: Unsign... |
-- The Cupcake GUI Toolkit
-- (c) Kristian Klomsten Skordal 2012 <kristian.skordal@gmail.com>
-- Report bugs and issues on <http://github.com/skordal/cupcake/issues>
-- vim:ts=3:sw=3:et:si:sta
with Cupcake.Colors;
with Cupcake.Primitives;
with Cupcake.Backends;
private with Ada.Containers.Doubly_Linked_Lists;
pa... |
-----------------------------------------------------------------------
-- gen-model-xmi -- UML-XMI model
-- Copyright (C) 2012, 2013, 2015, 2016, 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 ... |
pragma License (Unrestricted);
-- implementation unit
private package Ada.UCD is
-- This is the parent package of Unicode Character Database.
pragma Pure;
Version : constant String (1 .. 11) := "Unicode 6.1";
-- difference between two code points
type Difference_Base is range -(2 ** 31) .. 2 ** 31 -... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- 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... |
private with Ada.Containers.Doubly_Linked_Lists;
generic
type State is (<>); -- State'First is starting state
type Symbol is (<>); -- Symbol'First is blank
package Turing is
Start: constant State := State'First;
Halt: constant State := State'Last;
subtype Action_State is State range Start .. State'... |
package Geometry is
type Point is record
x : Float;
y : Float;
z : Float;
end record;
type Angle is new Float range -360.0 .. 360.0;
type Axes is record
yaw : Angle;
pitch : Angle;
roll : Angle;
end record;
type Shape is tagged record
... |
--caso de prueba 3: records, loop normal
--sacado de: http://www.dwheeler.com/lovelace/s6s6.htm
procedure Main is
--declaramos el record:
type Date is
record
Day : Integer range 1 .. 31;
Month : Integer range 1 .. 12;
Year : Integer range 1 .. 4000 := 1995;
end record;
--declaramos otra variable:... |
------------------------------------------------------------------------------
-- --
-- JSON Parser/Constructor --
-- --
-- -... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Strings;
package Torrent.Logs is
Enabled : Boolean := False;
procedure Initialize (Output : League.Strings.Univer... |
with ada.unchecked_deallocation;
with ada.characters.latin_1;
use ada.characters.latin_1;
package body generic_linked_list is
-- Instanciation du deallocateur pour le pool d'access node_t
procedure node_unchecked_deallocation is new ada.unchecked_deallocation(node_t, node_ptr);
function create(element : ... |
pragma Ada_2012;
with Ada.Text_IO; use Ada.Text_IO;
package body Protypo.API.Consumers.File_Writer is
type Writer_Access is access Writer;
----------
-- Open --
----------
function Open (Target : Target_Name) return Consumer_Access is
use Ada.Finalization;
Result : constant Writer_Access ... |
with Ada.Interrupts;
with STM32_SVD.USART;
with STM32_SVD; use STM32_SVD;
generic
with package USART is new STM32GD.USART.Peripheral (<>);
IRQ : Ada.Interrupts.Interrupt_ID;
package STM32GD.USART.IRQ is
procedure Init;
protected IRQ_Handler is
entry Wait;
private
procedure Handler;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.