content stringlengths 23 1.05M |
|---|
package body Support is
function max (a : in Real; b : in Real) return Real is
begin
if a > b
then return a;
else return b;
end if;
end;
function min (a : in Real; b : in Real) return Real is
begin
if a < b
then return a;
else return b;
end if... |
with Ada.Unchecked_Deallocation;
package body Generic_Stack is
------------
-- Create --
------------
function Create return Stack is
begin
return (null);
end Create;
----------
-- Push --
----------
procedure Push(Item : Element_Type; Onto : in out Stack) is
Temp : Stack ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
type R1 is record A: integer; end record;
type R2 is record A: integer; end record;
begin New_Line; end;
|
with GNAT.Sockets; use GNAT.Sockets;
procedure Socket_Send is
Client : Socket_Type;
begin
Initialize;
Create_Socket (Socket => Client);
Connect_Socket (Socket => Client,
Server => (Family => Family_Inet,
Addr => Inet_Addr ("127.0.0.1"),
... |
-- package Chebychev
--
-- Data structure for generating Chebychev polynomials of the 2nd kind,
-- using Clenshaw's method:
-- Q_0(X) = 1
-- Q_1(X) = 2*X
-- Q_k(X) = 2*X*Q_k-1(X) - Q_k-2(X)
-- Alpha(k,X) = 2*X
-- Beta(k,X) = -1
-- They are orthogonal on the interval (-1,1) with
... |
with Ada.Text_IO, Ada.Strings.Fixed;
use Ada.Text_IO;
procedure Euler4 is
function Is_Palindrome(S : String) return Boolean is
begin
for I in S'First .. S'Last / 2 loop
if S(I) /= S(S'Last - I + 1) then
return False;
end if;
end loop;
return True;
end;
function ... |
with
Ada.Directories;
package body JSA.Directories is
procedure Rename_As_Backup (Name : in String) is
use Ada.Directories;
Backup : constant String := Name & "~";
begin
if Exists (Name) then
if Exists (Backup) then
Delete_File (Backup);
end if;
Rename ... |
-- { dg-do compile }
-- { dg-options "-O0 -fdump-tree-gimple" }
with Atomic1_Pkg; use Atomic1_Pkg;
procedure Atomic1 is
C_16 : constant R16 := (2, 3, 5, 7);
C_32 : constant R32 := (1, 1, 2, 3, 5, 8, 13, 5);
begin
V_16 := C_16;
V_32 := C_32;
end;
-- { dg-final { scan-tree-dump-times "v_16" 1 "gimple"} }... |
-- 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 ... |
with Numerics;
use Numerics;
package Chebyshev is
function Chebyshev_Gauss_Lobatto (N : in Nat;
L : in Real := 0.0;
R : in Real := 1.0) return Real_Vector;
function Derivative_Matrix (N : in Nat;
L : in Real := 0.0;
R : in Real := 1.0) return Real_Matrix;
procedu... |
pragma License (Unrestricted);
-- generalized unit of Interfaces.C.Strings
with Interfaces.C.Pointers;
generic
type Character_Type is (<>);
type String_Type is array (Positive range <>) of Character_Type;
type Element is (<>);
type Element_Array is array (size_t range <>) of aliased Element;
with packag... |
-- Copyright 2017 Steven Stewart-Gallus
--
-- 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 by applicable law or agr... |
-----------------------------------------------------------------------
-- net-ntp -- NTP Network utilities
-- 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 file except in co... |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2018 Luke A. Guest
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising fr... |
-- 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... |
-----------------------------------------------------------------------
-- jason-projects-beans -- Beans for module projects
-- 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 ... |
pragma License (Unrestricted);
-- implementation unit
package System.Packed_Arrays is
pragma Pure;
-- for System.Compare_Array_Signed_XX/Compare_Array_Unsigned_XX
generic
type Element_Type is (<>);
package Ordering is
-- this surrounding package is necessary for propagating
-- prag... |
with Ada.Strings.East_Asian_Width;
procedure eastasianwidth is
use Ada.Strings.East_Asian_Width;
subtype WWC is Wide_Wide_Character;
begin
pragma Assert (Kind (WWC'Val (0)) = Neutral);
pragma Assert (Kind ('A') = Narrow);
pragma Assert (Kind (WWC'Val (16#2500#)) = Ambiguous);
pragma Assert (Kind (WWC'Val (16#3042... |
-- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.ICache is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- ICACHE control register... |
-- { dg-do compile }
with System, Ada.Unchecked_Conversion;
procedure alignment3 is
type Value_Type (Is_Short : Boolean) is record
case Is_Short is
when True => V : Natural;
when others => A, B : Natural;
end case;
end record;
type Link_Type (Short_Values : Boolean) is ... |
--
-- Copyright 2021 (C) Jeremy Grosser
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL; use HAL;
package body Serial_Console is
use HAL.UART;
procedure Put
(This : in out Port;
Item : Character)
is
Data : constant UART_Data_8b (1 .. 1) := (1 => UInt8 (Character'Pos (Item)));
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Shoot'n'loot
-- Copyright (c) 2020 Fabien Chouteau
with Interfaces; use Interfaces;
with GESTE;
with GESTE_Config;
package Render is
procedure Push_Pixels (Buffer : GESTE.Output_Buffer);
procedure Set_Drawing_Area (Area : GESTE.Pix_Rect);
procedure Render_All (Background : GESTE_Config.Output_Color)... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Long_Float_Text_IO; use Ada.Long_Float_Text_IO;
with Ada.Numerics.Generic_Elementary_Functions;
procedure Haversine_Formula is
package Math is new Ada.Numerics.Generic_Elementary_Functions (Long_Float); use Math;
-- Compute great circle distance, given latitude and l... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
with Opt20_Pkg; use Opt20_Pkg;
package Opt20 is
procedure Build_Library (For_Project : Integer);
end Opt20;
|
--******************************************************************************
--
-- package TEXT_IO
--
--******************************************************************************
with IO_EXCEPTIONS;
package TEXT_IO is
type FILE_TYPE is limited private;
type FILE_MODE is (IN_FILE, OUT_FILE);
type CO... |
--
-- 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 ... |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+si_units@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 S... |
-----------------------------------------------------------------------
-- gen-model-list -- List bean interface for model objects
-- Copyright (C) 2009, 2010, 2011, 2012, 2018, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (... |
-- 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 Ada.Iterator_Interfaces;
private with Ada.Finalization;
private with Ada.Unchecked_Deallocation;
-- Simple ordered set designed for us... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_Io; use Ada.Text_Io;
package body Example1 is
procedure Sense is
begin
for I in Integer range 1 .. 1000000000 loop
Put("");
end loop;
Put_Line ("Sense end");
end Sense;
procedure Handle_Deadline is
begin
Put_Line ("Deadline Overshot");
end Handle_Deadline;
end Example1;... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Interfaces.C;
private package Glfw.Enums is
type Window_Info is (Opened, Active, Iconified, Accelerated, Red_Bits,
Green_Bits, Blue_Bits, Alpha_Bits, Depth_Bits,
... |
-------------------------------------------------------------------------------
-- Copyright (c) 2019, Daniel King
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions... |
-----------------------------------------------------------------------
-- css-core -- Core CSS API definition
-- 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 file except in... |
pragma License (Unrestricted);
-- extended unit
with Ada.Strings.Functions;
with Ada.Strings.Generic_Unbounded.Generic_Functions;
package Ada.Strings.Unbounded_Strings.Functions is
new Generic_Functions (Strings.Functions);
pragma Preelaborate (Ada.Strings.Unbounded_Strings.Functions);
|
-- { dg-do compile }
-- { dg-options "-gnat12" }
package body Cond_Expr2 is
function F (X : integer) return String is
begin
return (if X > 0 then "positive" else "negative");
end;
end Cond_Expr2;
|
------------------------------------------------------------------------------
-- G E L A X A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
with Ada.Exceptions, Interfaces;
with Ada.Streams;
use Ada.Exceptions, Interfaces;
use Ada.Streams;
package Bitcoin is
subtype BT_Raw_Addr is Stream_Element_Array(1..25);
subtype BT_Checksum is Stream_Element_Array(1..4);
subtype BT_Addr is String(1..34);
subtype Sha256String is String(1..64);
Inva... |
with Ada.Command_Line;
with Ada.Strings.Unbounded;
with Ada.Text_IO;
with Web.HTML;
procedure test_encode is
use type Ada.Strings.Unbounded.Unbounded_String;
Verbose : Boolean := False;
Buffer : Ada.Strings.Unbounded.Unbounded_String;
procedure Append (S : in String) is
begin
Ada.Strings.Unbounded.Append (Buffer... |
-----------------------------------------------------------------------
-- asf-views -- Views
-- 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 use this file ex... |
------------------------------------------------------------------------------
-- Copyright (c) 2011, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
pragma License (Unrestricted);
-- extended unit
package Ada.Credentials is
-- There is a function to get user information.
pragma Preelaborate;
function User_Name return String;
end Ada.Credentials;
|
pragma License (Unrestricted);
with System.WCh_Con;
generic
Encoding_Method : System.WCh_Con.WC_Encoding_Method;
package GNAT.Encode_String is
pragma Pure;
function Encode_Wide_Wide_String (S : Wide_Wide_String) return String;
end GNAT.Encode_String;
|
with Ada.Numerics.Float_Random, Ada.Numerics.Discrete_Random;
package body S_Of_N_Creator is
package F_Rnd renames Ada.Numerics.Float_Random;
F_Gen: F_Rnd.Generator;
package D_Rnd is new Ada.Numerics.Discrete_Random(Index_Type);
D_Gen: D_Rnd.Generator;
Item_Count: Natural := 0; -- this is a global co... |
with Ada.Directories;
with Ada.Sequential_IO;
with Ada.Text_IO;
with GNAT.Current_Exception;
with Emulator_8080.Processor;
with Emulator_8080.Disassembler;
with Emulator_8080.Vram_Sender;
procedure Emulator_Main is
package Rom_IO is new Ada.Sequential_IO(Element_Type => Emulator_8080.Byte_Type);
Rom_Directory_... |
-- 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... |
package Atomic1_Pkg is
type Four_Bits is mod 2 ** 4;
type R16 is record
F1 : Four_Bits;
F2 : Four_Bits;
F3 : Four_Bits;
F4 : Four_Bits;
end record;
for R16 use record
F1 at 0 range 0 .. 3;
F2 at 0 range 4 .. 7;
F3 at 0 range 8 .. 11;
F4 at 0 range 12 ..... |
package FLTK.Images is
type Image is new Wrapper with private;
type Image_Reference (Data : not null access Image'Class) is limited null record
with Implicit_Dereference => Data;
type Scaling_Kind is (Nearest, Bilinear);
type Blend is new Float range 0.0 .. 1.0;
No_Image_Error, File_... |
pragma Check_Policy (Trace => Ignore);
with Ada.Unchecked_Conversion;
with System.Address_To_Named_Access_Conversions;
with System.Shared_Locking;
package body Ada.Tags.Delegating is
pragma Suppress (All_Checks);
use type System.Address;
package Tag_Conv is
new System.Address_To_Named_Access_Conversions... |
with Aws.Client, Aws.Messages, Aws.Response, Aws.Resources, Aws.Url;
with Dom.Readers, Dom.Core, Dom.Core.Documents, Dom.Core.Nodes, Dom.Core.Attrs;
with Input_Sources.Strings, Unicode, Unicode.Ces.Utf8;
with Ada.Strings.Unbounded, Ada.Strings.Fixed, Ada.Text_IO, Ada.Command_Line;
with Ada.Containers.Vectors;
use Aws... |
pragma License (Unrestricted); -- BSD 3-Clause
-- translated unit from MT19937
--
-- A C-program for MT19937, with initialization improved 2002/1/26.
-- Coded by Takuji Nishimura and Makoto Matsumoto.
--
-- Before using, initialize the state by using init_genrand(seed)
-- or init_by_array(init_key, key_length).
--... |
-- --
-- package Strings_Edit Copyright (c) Dmitry A. Kazakov --
-- Implementation Luebeck --
-- Strings_Edit.Float_Edit Spring, 2000 --
-- ... |
with Ada.Unchecked_Deallocation;
package body Ada_Containers_Indefinite_Holders is
procedure Free is
new Ada.Unchecked_Deallocation (Element_Type, Element_Access);
procedure Adjust (Self : in out Holder) is
begin
Self.Element := new Element_Type'(Self.Element.all);
end Adjust;
-----------... |
with GL.Buffer.general; pragma Elaborate_All (GL.Buffer.general);
with GL.Geometry;
package GL.Buffer.indices is new GL.Buffer.general (base_object => GL.Buffer.element_array_Object,
index => GL.positive_uInt,
... |
----------------------------------------------------------------------
--
-- Maze Package
--
-- written by
--
-- Edmond Schonberg
--
-- Ada Project
-- Courant Institute
-- New York University
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (c) 2014-2016 Vitalij Bondarenko <vibondare@gmail.com> --
-- --
----... |
function SumRange(x, y: IN Integer) return Integer is
Result : Integer;
begin
Result := 0;
for I in x .. y loop
Result := Result + I;
end loop;
return Result;
end SumRange;
|
package Root is
type Buffer_Type is array (Positive range <>) of Natural;
type Root_Type (First : Natural) is abstract tagged record
Buffer_Root : Buffer_Type (1 .. First);
end record;
end Root;
|
package Alumnos is
Tamano_Nombre : constant Integer := 20;
type Tipo_Escuela is (Teleco, Caminos, Fisicas, Medicina);
type Alumno is private;
procedure Lee (Alu : out Alumno);
procedure Escribe (Alu : in Alumno);
private
type Alumno is record
Nombre : String(1..Tamano_Nombre);
N_Nombre :... |
with Lv.Style;
with Lv.Objx.Page;
with Lv.Objx.Label;
package Lv.Objx.Textarea is
subtype Instance is Obj_T;
Cursor_Last : constant := 16#7FFF#;
type Cursor_Type_T is (Cursor_None,
Cursor_Line,
Cursor_Block,
Cursor_Outline,
... |
with Ada.Finalization;
package asynch is
type t_ctrl is new Ada.Finalization.Controlled with record
stuff : Natural := 0;
end record;
function null_ctrl return t_ctrl;
end asynch;
|
-- 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... |
-- { dg-do compile }
with Incomplete4_Pkg; use Incomplete4_Pkg;
with System;
procedure Incomplete4 is
L : System.Address := A'Address;
begin
null;
end;
|
with AdaBase;
with Connect;
with CommonText;
with Ada.Text_IO;
with Ada.Calendar;
with AdaBase.Results.Sets;
with Interfaces;
procedure Execute_Dynabound is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package AR renames AdaBase.Results;
package ARS renames AdaBase.Results.Sets;
packa... |
-----------------------------------------------------------------------
-- keystore-tests -- Tests for akt command
-- Copyright (C) 2019, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file... |
with Ada.Text_IO;
use Ada.Text_IO;
with Bubble;
use Bubble;
with Ada.Task_Identification;
use Ada.Task_Identification;
procedure Bubble_Test is
A, B, C, D : Integer;
begin
Put_Line("Starting");
State.Set_All(5,1,3,1);
State.Wait_Until_Sorted(A,B,C,D);
Put_Line("Done");
Abort_Task (Current_Task)... |
-- This spec has been automatically generated from msp430g2553.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- USCI_A0 SPI Mode
package MSP430_SVD.USCI_A0_SPI_MODE is
pragma Preelaborate;
---------------
-- Registers --
---------------
--... |
------------------------------------------------------------------------------
-- --
-- JSON Parser/Constructor --
-- --
-- -... |
package Element_Copy is
type SmallInt is range 1 .. 4;
type SmallStr is array (SmallInt range <>) of Character;
type VariableSizedField (D : SmallInt := 2) is record
S : SmallStr (1 .. D) := "Hi";
end record;
function F return VariableSizedField;
end;
|
with Ada.Streams.Naked_Stream_IO;
with Ada.Streams.Stream_IO.Naked;
with System.Unwind.Occurrences;
package body Ada.Processes is
-- implementation
function Image (Command : Command_Type) return String is
Native_Command : System.Native_Processes.Command_Type
renames Controlled_Commands.Reference... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Interfaces.C.Strings;
with Glfw.API;
package body Glfw.Monitors is
function Monitors return Monitor_List is
use type API.Address_List_Pointers.Pointer;
Count : aliased Interfaces.... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Logging_With_Categories;
procedure TC_Log_Filtering is
type Categories is (Debug, Warning, Error);
procedure Print (Str : String; Prio : Natural);
package Log is new Logging_With_Categories
(Categories => Categories,
Priorities => Natur... |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
with Ada.Containers.Indefinite_Holders;
package Protypo.Api.Engine_Values.Engine_Value_Holders is
new Ada.Containers.Indefinite_Holders (Engine_Value);
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package STM32.F4.Address_Map is
pragma Pure;
TIM2: constant := 16#4000_0000#;
TIM3: constant := 16#4000_0400#;
TIM4: constant := 16#4000_0800#;
TIM5: constant := 16#4000_0C00#;
TIM6: constant := 16#4000_1000#;
TIM7: constant := 16#4000_1400#;
TIM12: constant := ... |
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with GL.Attributes;
with GL.Buffers;
with GL.Culling;
with GL.Immediate;
with GL.Objects.Buffers;
with GL.Objects.Programs;
with GL.Objects.Vertex_Arrays;
with GL.Objects.Shaders.Lists;
with GL.Raster;
with GL.Rast... |
pragma Ada_2012;
with Interfaces; use Interfaces;
package body Base64_Generic is
function Encode (Input : Element_Array) return String is
Result : String (1 .. Input'Length * 4); -- Worst case scenario
Current : Natural := 0;
Step : Natural := 0;
Last : Unsigned_8 := 0;
begi... |
-----------------------------------------------------------------------
-- Copyright 2021 Lev Kujawski --
-- --
-- Permission is hereby granted, free of charge, to any person --
-- obtaining a copy of this sof... |
--
-- YOTROC virtual machine
--
with Ada.Containers.Vectors;
with Ada.Containers.Hashed_Maps; use Ada.Containers;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Interfaces; use Interfaces;
with util; use util;
package vm is
MAX_ADDRESS :... |
-- 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... |
-- <link rel="alternate" type="application/rss+xml" title="RSS2.0" href="*" />
package Web.RSS is
procedure RSS_Start (
Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Title : in String;
Description : in String;
Link : in String);
procedure RSS_Item (
Stream : not null access Ada.Streams.Ro... |
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with JohnnyText;
with Config;
with Definitions; use Definitions;
package Parameters is
package JT renames JohnnyText;
live_system : constant String := "LiveSystem";
no_ccache : constant String :... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Containers;
with LLVM.Types;
with Lace.Contexts;
with Lace.Generic_Engines;
package Lace.LLVM_Contexts is
-- pragma Preelaborate;
type LLV... |
------------------------------------------------------------------------------
-- Copyright (c) 2019, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with AVTAS.LMCP.Types; use AVTAS.LMCP.Types; -- used by child packages
with Ada.Containers.Formal_Hashed_Sets;
with Ada.Strings.Hash;
with Dynamic_Strings; use Dynamic_Strings;
package UxAS.Comms is
Subscription_Address_Max_Length : constant := 255; -- arbitrary
subtype Subscription_Address is Dynamic_Stri... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ iterator over types --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
with Ada.Interrupts.Names; use Ada.Interrupts.Names;
with STM32_SVD.EXTI;
package STM32GD.EXTI is
type External_Line_Number is
(EXTI_Line_0,
EXTI_Line_1,
EXTI_Line_2,
EXTI_Line_3,
EXTI_Line_4,
EXTI_Line_5,
EXTI_Line_6,
EXTI_Line_7,
EXTI_Line_8,
EXTI_Line_9... |
pragma Ada_2012;
with Ada.Text_IO; use Ada.Text_IO;
package body Symbol_Tables.Generic_Symbol_Table is
Activate_Debug : constant Boolean := False;
Printer : Value_Printer := null;
procedure Set_Printer (Callback : Value_Printer) is
begin
Printer := Callback;
end Set_Printer;
function Image ... |
with STM32_SVD; use STM32_SVD;
with Serial; use Serial;
with STM32GD.Board; use STM32GD.Board;
with STM32GD.USART; use STM32GD.USART;
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Synchronous_Task_Control; use Ada.Synchronous_... |
-- 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... |
-----------------------------------------------------------------------
-- Memory - Memory slot
-- 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 may not use this file except in co... |
with Ada.Unchecked_Conversion;
package body Last_Chance_Handler is
procedure Ewok_Debug_Alert (S : String)
with
Convention => Ada,
Import => True,
External_name => "ewok_debug_alert";
procedure Ewok_Debug_Newline
with
Convention => Ada,
Import => Tru... |
separate (Numerics.Sparse_Matrices)
function Transpose (Mat : in Sparse_Matrix) return Sparse_Matrix is
Result : Sparse_Matrix := Mat;
begin
Transposed (Result);
return Result;
end Transpose;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.