content stringlengths 23 1.05M |
|---|
-- 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... |
pragma Ada_2012;
with System.Parameters;
generic
type U8 is mod <>;
type U32 is mod <>;
type SZT is mod <>;
package fastpbkdf2_h_generic with
Pure,
Preelaborate
is
pragma Compile_Time_Error
(U8'Modulus /= 2**8, "'U8' type must be mod 2**8");
pragma Compile_Time_Error
(U32'Modulus /= 2**... |
with AUnit;
with AUnit.Test_Cases;
package Dl.Test_Basics is
type Test_Case is new AUnit.Test_Cases.Test_Case with null record;
procedure Register_Tests (T : in out Test_Case);
-- Register routines to be run
function Name (T : Test_Case)
return Aunit.Message_String;
-- Returns nam... |
with Picosystem.Pins;
with RP.Device;
with RP.UART;
with RP.GPIO;
with HAL.UART;
with HAL;
package body Console is
Initialized : Boolean := False;
Port : RP.UART.UART_Port renames RP.Device.UART_0;
procedure Initialize is
use RP.GPIO;
begin
Port.Configure;
Picosystem.Pins.UART_RX.... |
with Ada.Text_IO; use Ada.Text_IO;
package body Types.Strings is
package Io is new Ada.Text_IO.Float_IO (Float);
function To_String
(Value : Float)
return String is
begin
-- Use IO package to convert number to a string
-- Use global objects from spec to control formatting
return "... |
with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
message : constant String := "JRM wrote this note.";
begin
if not initialize_sodium_library then
Put_Line ("Initialization failed");
return;
end if;
declare
new_public_sign_key : Public_... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package Prime_Ada is
cnt : Integer;
procedure Get_Prime (n : Integer);
end Prime_Ada;
|
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Strings.Unbounded;
with Ada.Containers;
package HelperText is
package SU renames Ada.Strings.Unbounded;
package CON renames Ada.Containers;
subtype Text is SU.Unbounded_String;
type Line_Ma... |
pragma License (Unrestricted);
with Ada.Calendar;
package GNAT.Calendar is
No_Time : constant Ada.Calendar.Time :=
Ada.Calendar.Time_Of (
Year => Ada.Calendar.Year_Number'First,
Month => Ada.Calendar.Month_Number'First,
Day => Ada.Calendar.Day_Number'First);
end GNAT.Calendar;
|
with Ada.Exceptions;
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Real_Time;
with Ada.Text_IO;
with GL.Buffers;
with GL.Low_Level.Enums;
with GL.Objects.Textures;
with GL.Pixels;
with GL.Toggles;
with GL.Types;
with Orka.Behaviors;
with Orka.Cameras.Rotate_Around_Cameras;
with Orka.Contexts;
with Orka.Deb... |
-----------------------------------------------------------------------
-- security-oauth -- OAuth Security
-- Copyright (C) 2012, 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");
-- you may ... |
-----------------------------------------------------------------------
-- mat-expressions-tests -- Unit tests for MAT expressions
-- Copyright (C) 2014, 2015, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
With Ada.Text_IO; Use Ada.Text_IO;
Procedure BuscaBinaria is
numeros: array(1..15) of Integer;
target : Integer;
L : Integer;
R : Integer;
mid : Integer;
found: Integer;
-- Leitura String
function Get_String return String is
Line : String (1 .. 1_000);
Last : Natural;
begin
Get_Line (Line, Last);
ret... |
------------------------------------------------------------------------------
-- EMAIL: <darkestkhan@gmail.com> --
-- License: ISC --
-- --
-- ... |
with Ada.Text_IO;
procedure Pythagorean_Triples is
type Large_Natural is range 0 .. 2**63-1;
-- this is the maximum for gnat
procedure New_Triangle(A, B, C: Large_Natural;
Max_Perimeter: Large_Natural;
Total_Cnt, Primitive_Cnt: in out Large_Natural) is
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
Function INI.Section_to_Vector( Object : in Instance;
Section: in String:= ""
) return NSO.Types.String_Vector.Vector is
Use NSO.Types.String_Vector;
Begin
Return Result : Vector do
For Item in Object(Section).Iterate loop
... |
pragma Ada_2012;
with Ada.Numerics.Elementary_Functions;
package body Callbacks is
use Ada.Numerics.Elementary_Functions;
use Engine_Values;
use Engine_Values.Engine_Value_Vectors;
---------
-- Sin --
---------
function Sin (X : Engine_Value_Vectors.Vector)
return Engine_Value_V... |
-----------------------------------------------------------------------
-- components-ajax-includes -- AJAX Include component
-- Copyright (C) 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... |
with HAL; use HAL;
with HAL.GPIO;
with SAM.Device;
with SAM.Port;
with SAM.ADC;
with SAM.Clock_Generator;
with SAM.Clock_Generator.IDs;
with SAM.Main_Clock;
with SAM.Functions;
package body PyGamer.Controls is
type Buttons_State is array (Buttons) of Boolean;
Current_Pressed : Buttons_State := (others ... |
-------------------------------------------------------------------------------
-- Copyright 2021, The Septum 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 License at
... |
package body Buffer_Package is
procedure Enable_Undo (B : in out Buffer) is
begin
B.Can_Undo := True;
end Enable_Undo;
procedure Clear_Tag (B : in out Buffer; T : Tag_Type) is
begin
if T < TAG_MAX then
declare
Val : constant Integer := Tag_Type'Pos (T);
begin
... |
{% load kdev_filters %}
{% block license_header %}
{% if license %}
--
{{ license|lines_prepend:"-- " }}
--
{% endif %}
{% endblock license_header %}
{% if baseClasses %}
with {% for b in baseClasses %}b.baseType{% if not forloop.last %}, {% endif %}{% endfor %};
{% endif %}
package body {{ name }} is
{% for f in... |
with Interfaces.C;
with Interfaces.C.Strings;
with Ada.Containers;
with Cups.String_Maps;
private with CUPS.Cups_Cups_H;
with System;
with Ada.Strings.Bounded;
with Ada.Sequential_IO; use Ada;
with Ada.Text_IO;
package CUPS.CUPS is
use Interfaces.C.Strings;
use Interfaces.C;
use Ada.Containers;
function... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Table_Pythagore is
Taille: Integer; -- taille de la table
begin
-- Demander la taille
Get (Taille);
-- Afficher la table de Pythagore
for I in 0 .. Taille loop
for J in 0 .. Taille loop
... |
-- AOC 2020, Day 16
with Ada.Containers.Vectors;
with Ada.Containers; use Ada.Containers;
package Day is
type Tickets is private;
function load_file(filename : in String) return Tickets;
function sum_error_rate(t : in Tickets) return Natural;
function departure_fields(t : in Tickets) return Long_Integer;
p... |
-- for ZCX
pragma Check_Policy (Trace => Ignore);
with C.unwind;
separate (System.Unwind.Backtrace)
package body Separated is
pragma Suppress (All_Checks);
type Data is record
Item : not null access Tracebacks_Array;
Last : Natural;
Exclude_Min : Address;
Exclude_Max : Address;
end re... |
-- 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; -- Debug.
with Ada.Unchecked_Deallocation,
Ada.Strings.Fixed,
Ada.Characters.Handling;
package body ARM_Database is
--
-- Ada reference manual formatter (ARM_Form).
--
-- This package contains the database to store items for non-normative
-- appendixes.
... |
pragma License (Unrestricted);
-- Ada 2012
private with Ada.Finalization;
private with System.Synchronous_Objects;
package Ada.Synchronous_Barriers is
pragma Preelaborate;
subtype Barrier_Limit is
Positive range 1 .. Natural'Last; -- implementation-defined
type Synchronous_Barrier (
Release_Thre... |
package gel.Dolly.simple
--
-- Provides a simple camera dolly.
--
is
type Item is new gel.Dolly.item with private;
type View is access all Item'Class;
---------
--- Forge
--
overriding
procedure define (Self : in out Item);
overriding
procedure destroy (Self : in out Item);
--------... |
with PathPackage, IntrospectorPackage, ObjectPack, PositionPackage;
use PathPackage, IntrospectorPackage, ObjectPack, PositionPackage;
package EnvironmentPackage is
DEFAULT_LENGTH : constant Integer := 8;
SUCCESS : constant Integer := 0;
FAILURE : constant Integer := 1;
IDENTITY : constant Integer := 2;
... |
package dispatch1_p is
type I1 is interface;
type DT_I1 is new I1 with null record;
end;
|
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32G474xx.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.FMAC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype X1BUFCFG_X1_BASE_Field is HAL.UInt8... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
begin
for I in 'a' .. 10 loop
New_Line;
end loop;
end;
|
with Ada.Real_Time;
with ACO.CANopen;
with ACO.Messages;
with ACO.OD;
with ACO.SDO_Sessions;
private with Interfaces;
private with ACO.Log;
private with ACO.Utils.Generic_Alarms;
private with ACO.Configuration;
private with ACO.SDO_Commands;
private with ACO.OD_Types;
package ACO.Protocols.Service_Data is
SDO_S2C... |
-- --
-- package Parsers Copyright (c) Dmitry A. Kazakov --
-- Interface Luebeck --
-- Winter, 2004 --
-- ... |
-- Automatically generated, do not edit.
with Interfaces.C;
with System;
with OpenAL.Types;
package OpenAL.Thin is
package C renames Interfaces.C;
-- Constants
AL_BITS : constant := 16#2002#;
AL_BUFFER : constant := 16#1009#;
AL_BUFFERS_PROCESSED : consta... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
package YAML is
type Node_Types is (Tree, Leaf);
end YAML;
|
pragma License (Unrestricted);
with GNAT.Traceback;
with System;
package Ada.Exceptions.Traceback is
subtype Code_Loc is System.Address;
subtype Tracebacks_Array is GNAT.Traceback.Tracebacks_Array;
function Get_PC (TB_Entry : System.Address) return Code_Loc;
end Ada.Exceptions.Traceback;
|
-- Shoot'n'loot
-- Copyright (c) 2020 Fabien Chouteau
with Game_Assets; use Game_Assets;
with GESTE;
package Monsters is
Max_Nbr_Of_Monsters : constant := 5;
procedure Init (Objects : Object_Array)
with Pre => Objects'Length <= Max_Nbr_Of_Monsters;
function Check_Hit (Pt : GESTE.Pix_Point;
... |
pragma License (Unrestricted);
-- implementation unit
package System.Unbounded_Stack_Allocators.Debug is
pragma Preelaborate;
-- dump the secondary stack of current task
procedure Dump (Allocator : aliased in out Allocator_Type);
end System.Unbounded_Stack_Allocators.Debug;
|
-----------------------------------------------------------------------
-- util-beans-vectors -- Object vectors
-- Copyright (C) 2011, 2017, 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 f... |
with Ada.Text_IO;
with GC;
procedure version is
begin
Ada.Text_IO.Put_Line (GC.Version);
end version;
|
-- Copyright (C) 2020 Glen Cornell <glen.m.cornell@gmail.com>
--
-- 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 versi... |
-- { dg-do compile }
-- { dg-options "-fdump-tree-gimple" }
with VFA1_Pkg; use VFA1_Pkg;
procedure VFA1_2 is
Temp : Int8_t;
function F (I : Int8_t) return Int8_t is
begin
return I;
end;
function F2 return Int8_t is
begin
return Int8_t(Timer1(1));
end;
procedure P3 (I : out Int8_t) is
begi... |
-------------------------------------------------------------------------------
-- DEpendency PLOtter for ada packages (DePlo) --
-- --
-- Copyright (C) 2012, Riccardo Bernardini --
... |
-- 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,... |
-- Project: StratoX
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
-- Authors: Martin Becker (becker@rcs.ei.tum.de)
--
-- XXX! Nothing here is proven thread-safe!
with Ada.Unchecked_Conversion;
with FAT_Filesystem; use FAT_Filesystem;
-- @summary File handling for FAT FS
package bod... |
--
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from ATSAMG55J19.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- Embedded Flash Controller
package Interfaces.SAM.EFC is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Register... |
package body openGL.Raster
is
procedure set_Window_Position (X, Y : in Real;
Z : in Real := 0.0;
W : in Real := 1.0)
is
pragma Unreferenced (Z, W);
begin
raise Program_Error with "TODO: unimplemented";
end set_Window_Posi... |
package xample1 is
procedure SayWelcome;
procedure xercise;
-- procedure Goodbye;
end xample1;
|
with AWS.Config.Set;
with AWS.Services.Dispatchers.URI;
with AWS.Server;
with @_Project_Name_@.Dispatchers;
procedure @_Project_Name_@.Main is
use AWS;
Web_Server : Server.HTTP;
Web_Config : Config.Object;
Web_Dispatcher : Services.Dispatchers.URI.Handler;
Default_Dispatcher : Di... |
-- SipHash24
-- An instantiation of SipHash with recommended parameters.
-- The key must be set with SetKey before use, or there will be no protection
-- from hash flooding attacks.
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
pragma Spark_Mode;
with SipHash;
pragma Elaborate_All(SipHash);
p... |
------------------------------------------------------------------------------
-- Copyright (c) 2014-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
-----------------------------------------------------------------------
-- secret-attributes -- Attribute list representation
-- 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 use this... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with AUnit.Reporter.Text;
with AUnit.Run;
with Unbound_Array_Suite;
with Safe_Alloc_Suite;
with GNAT.OS_Lib;
with Text_IO;
with Spark_Unbound;
procedure Tests is
use type AUnit.Status;
Reporter : AUnit.Reporter.Text.Text_Reporter;
function Unbound_Array_Test_Runner is new AUnit.Run.Test_Runner_With_Status(... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
with Ada.Strings.Hash_Case_Insensitive;
with Ada.Containers;
with Symbol_Tables.Generic_Symbol_Table;
with Protypo.API.Engine_Values;
--
-- This package defines the symbol tables used by the engine. They
-- are basically structures that map symbol names into Engine_Value's
--
package Protypo.API.Symbols is
subtyp... |
-----------------------------------------------------------------------
-- awa-converters-dates -- Date Converters
-- 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 file excep... |
with Ada.Text_Io;
with Ada.Integer_Text_IO;
procedure Integer_Arithmetic is
use Ada.Text_IO;
use Ada.Integer_Text_Io;
A, B : Integer;
begin
Get(A);
Get(B);
Put_Line("a+b = " & Integer'Image(A + B));
Put_Line("a-b = " & Integer'Image(A - B));
Put_Line("a*b = " & Integer'Image(A * B));
Put_Li... |
-- -*- Mode: Ada -*-
-- Filename : console.ads
-- Description : Definition of a console for PC using VGA text mode.
-- Author : Luke A. Guest
-- Created On : Thu Jun 14 12:08:58 2012
-- Licence : See LICENCE in the root directory.
----------------------... |
with Ada.Text_IO;
with Ada.Calendar;
with Pendulums;
procedure Main is
package Float_Pendulum is new Pendulums (Float, -9.81);
use Float_Pendulum;
use type Ada.Calendar.Time;
My_Pendulum : Pendulum := New_Pendulum (10.0, 30.0);
Now, Before : Ada.Calendar.Time;
begin
Before := Ada.Calen... |
package body problem_14 is
function Solution_1 return Integer is
Upper : constant Integer := 1_000_000;
Max : Integer := 0;
Ret : Integer;
Num : Integer;
Current : Int64;
begin
for I in reverse 1 .. Upper loop
Num := 1;
Current := Int64(I)... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
generic
type Table_Component_Type is private;
type Table_Index_Type is range <>;
Table_Low_Bound : Table_Index_Type;
package Opt46_Pkg is
type Table_Type is
array (Table_Index_Type range <>) of Table_Component_Type;
subtype Big_Table_Type is
Table_Type (Table_Low_Bound .. Table_Index_Typ... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Bit_Ops is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
-- required for "=" packed boolean array by compiler (s-bitop.ads)
function Bit_Eq (
Left : Address;
... |
package body EU_Projects.Times is
-----------------
-- To_Duration --
-----------------
function To_Duration (X : Instant) return Duration is
begin
return Duration(X);
end To_Duration;
function Is_Empty (X : Interval) return Boolean
is
begin
return X.Start > X.Stop;
end Is... |
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;
with Ada.Calendar; use Ada.Calendar;
with Ada.Calendar.Formatting; use Ada.Calendar.Formatting;
with Ada.Calendar.Time_Zones; use Ada.Calendar.Time_Zones;
procedure test_puiss is
pr... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types;
private with GL.Low_Level;
package GL.Rasterization is
pragma Preelaborate;
use GL.Types;
subtype Line_Width_Range is Singles.Vector2;
type Polygon_Mode_Type is (Point, L... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016-2020, AdaCore --
-- --
-- ... |
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without modification,
-- are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code must retain the above copyright notice, t... |
with System;
package NAT1 is
Nat_One_Storage : constant Natural := 1;
One_Address : constant System.Address := Nat_One_Storage'Address;
end;
|
-- C97307A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
------------------------------------------------------------------------------
-- Copyright (c) 2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package RCP.User is
-- a user process class with discriminants
-- for use by the constructor
task type User_T
(Id : Positive;
Extent : Use_T;
Demand : Request_T;
Interval : Positive);
end RCP.User;
|
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Containers;
with Ada.Finalization;
with Text.Pool;
generic
type Value_Type is private;
package Yaml.Text_Set is
type Reference is new Ada.Finalization.Limited_Controlled with private;
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- 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.WWDT is
pragma Preelaborate;
... |
package body impact.d3.min_max
is
function btClamped (a : in Real; lower_Bound, upper_Bound : in Real) return Real
is
begin
if a < lower_Bound then
return lower_Bound;
elsif upper_Bound < a then
return upper_Bound;
else
return a;
end if;
end btClam... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package Program.Resolvers.Name_In_Region is
pragma Preelaborate;
procedure Resolve_Name
(Region : Program.Visibility.View;
Name : Progra... |
private
package Tokenize.Private_Token_Lists with SPARK_Mode => On is
type Token_List (<>) is tagged private;
function Create (N : Token_Count) return Token_List
with
Pre'Class => Integer(N) < Positive'Last,
Post => Create'Result.Length = 0 and Create'Result.Capacity = N... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
pragma Warnings (Off);
pragma Style_Checks (Off);
-------------------------------------------------------------------------
-- GLOBE_3D - GL - based, real - time, 3D engine
--
-- Copyright (c) Gautier de Montmollin/Rod Kay 2007
-- CH - 8810 Horgen
-- SWITZERLAND
-- Permission granted to use this so... |
with Ada.Finalization;
generic
I : Integer;
package Controlled6_Pkg.Iterators is
type Iterator_Type is new Ada.Finalization.Controlled with record
Current : Node_Access_Type;
end record;
function Find return Iterator_Type;
function Current (Iterator : in Iterator_Type) return T;
pragma Inl... |
-----------------------------------------------------------------------
-- ado-connections-mysql -- MySQL Database connections
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2017, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Vers... |
-----------------------------------------------------------------------
-- package body Runge_Coeffs_PD_8, coefficients for Prince-Dormand Runge Kutta
-- Copyright (C) 2008-2018 Jonathan S. Parker.
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby g... |
-- 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... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
with Ada.Colors;
with Ada.Text_IO.Terminal.Colors.Names;
procedure tty_color is
use type Ada.Text_IO.Terminal.Colors.Color_Parameter;
package CN
renames Ada.Text_IO.Terminal.Colors.Names;
System_Colors : constant array (0 .. 15) of Ada.Text_IO.Terminal.Colors.Color := (
CN.Black,
CN.Dark_Blue,
CN.Dark_Green,... |
with Ada.Text_IO;
with Orka.Features.Atmosphere.KTX;
with Orka.Transforms.Doubles.Matrices;
package body Demo.Atmospheres is
package Matrices renames Orka.Transforms.Doubles.Matrices;
function Create
(Planet_Model : aliased Orka.Features.Atmosphere.Model_Data;
Planet_Data : Planets... |
-- Copyright (C)2021,2022 Steve 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, merge, publis... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- This spec has been automatically generated from STM32F411xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.DMA is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype LISR_FEIF0_Field is STM32_SVD.... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.