content stringlengths 23 1.05M |
|---|
package body AdaM.Assist.Query.find_Entities.Metrics
is
procedure dummy is begin null; end dummy;
end AdaM.Assist.Query.find_Entities.Metrics;
|
package HAL.GPIO with SPARK_Mode => Off is
type GPIO_Point is limited interface;
type GPIO_Point_Ref is not null access all GPIO_Point'Class;
function Set (Point : GPIO_Point) return Boolean is abstract;
procedure Set (Point : in GPIO_Point) is abstract;
procedure Clear (Point : in out GPIO_Point) is ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Array_Loop_Test is
type Array_Index is range 1..3;
A1 : array (Array_Index) of Character := "abc";
A2 : array (Array_Index) of Character := "ABC";
A3 : array (Array_Index) of Integer := (1, 2, 3);
begin
for Index in Array_Index'Range loop
Put_Line (A... |
with Matriz;
use Matriz;
with rotar_derecha;
procedure matriz_toeplitz (V : in out Vector_De_Enteros; M : out Matriz_De_Enteros) is
Fila : Integer;
begin
Fila := V'First;
for I in V'First .. V'Last loop -- Filas del matriz
if Fila > V'First then -- En la primera fila no se tiene que rotar el vector
rotar_der... |
---------------------------------------------------------------------------------
-- Copyright 2004-2005 © Luke A. Guest
--
-- This code is to be used for tutorial purposes only.
-- You may not redistribute this code in any form without my express permission.
------------------------------------------------------------... |
with
openGL.Server,
Lumen.Window,
ada.Text_IO;
procedure launch_core_Test
--
-- Exercise basic subprograms common to all GL profiles.
--
-- TODO: Complete this.
--
is
use ada.Text_IO;
Win : Lumen.Window.Window_Handle;
begin
-- Create Lumen window to provide a current GL context.
--
lu... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- babel-files-maps -- Hash maps for files and directories
-- Copyright (C) 2014 Stephane.Carrez
-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use... |
package Support.RegEx is
-- re_intg : String := "([-+]?[0-9]+)";
-- re_real : String := "([-+]?[0-9]*[.]?[0-9]+([eE][-+]?[0-9]+)?)"; -- note counts as 2 groups (1.234(e+56))
-- re_text : String := "([a-zA-Z0-9 .-]+)";
-- re_space : String := "( |\t)+";
-- re_email : String := "([a-zA-Z0-9._%+-]+@(?:[... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- Util.Beans.Objects.Enums -- Helper conversion for discrete types
-- Copyright (C) 2010 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ma... |
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;
-- Afficher le tarif d'une place
procedure Tarif_Place is
Age: Integer; -- l'âge de la personne
Tarif: Float; -- le tarif à appliquer
begin
-- Demander l'age
Get (Age... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Finalization_Root is
pragma Pure;
-- required for controlled type by compiler (s-finroo.ads)
type Root_Controlled is abstract tagged null record;
procedure Adjust (Object : in out Root_Controlled) is null;
proc... |
with Debug; use Debug;
with Ada.Numerics.Discrete_Random;
with Ada.Characters.Latin_1;
use Ada.Characters.Latin_1;
package body Instruction is
package Random_OpCode is new Ada.Numerics.Discrete_Random (OpCode);
package Random_Reg is new Ada.Numerics.Discrete_Random (Reg);
package Random_Offset is new Ada.N... |
with Lv.Style;
package Lv.Objx.Checkbox is
subtype Instance is Obj_T;
type Style_T is (Style_Bg,
Style_Rel,
Style_Pr,
Style_Tgl_Rel,
Style_Tgl_Pr,
Style_Ina);
-- Create a check box objects
-- @param par... |
package Unc_Constructor is
type C is null record;
type A is array (Positive range <>) of C;
A0 : constant A;
procedure P (X : A);
private
A0 : aliased constant A := (1 .. 0 => (null record));
end;
|
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
generic
type Index_Type is (<>);
type Element_Type is private;
with function "+" (Left, Right : Element_Type) return Element_Type is <>;
with function "-" (Left, Right : Element_Type) return... |
with Ada.Containers.Formal_Hashed_Maps;
with Ada.Containers.Functional_Maps;
with Assignment_Tree_Branch_Bound_Communication; use Assignment_Tree_Branch_Bound_Communication;
with Common; use Common;
with LMCP_Messages; use LMCP_Messages;
package Assignme... |
with Ada.Strings.Wide_Wide_Hash;
function Ada.Strings.Wide_Wide_Bounded.Wide_Wide_Hash (
Key : Bounded.Bounded_Wide_Wide_String)
return Containers.Hash_Type is
begin
return Strings.Wide_Wide_Hash (Key.Element (1 .. Key.Length));
end Ada.Strings.Wide_Wide_Bounded.Wide_Wide_Hash;
|
-----------------------------------------------------------------------
-- awa-components-inputs -- AWA input field 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 us... |
with Ada.Text_IO; use Ada.Text_IO;
with Common_Formal_Containers; use Common_Formal_Containers;
procedure Test is
S : Int64_Set;
use Int64_Sets;
begin
Put_Line ("Starting");
Include (S, 1000);
Put_Line ("Done");
end Test;
|
with Ada.Unchecked_Conversion;
with C.stdlib;
package body System.Native_Locales is
use type C.char;
use type C.char_array;
use type C.char_ptr;
use type C.size_t;
subtype Fixed_char_array is C.char_array (C.size_t);
type char_array_const_ptr is access constant Fixed_char_array
with Convention ... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
-- SPDX-FileCopyrightText: 2020-2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Nodes.Proxy_Associations;
package body Program.Nodes.Proxy_Calls is
-----------------
-- Called_Name --
-----------------
o... |
-- { dg-do compile }
-- { dg-options "-O2" }
PROCEDURE Array8 IS
function ID (I : Integer) return Integer is
begin
return I;
end;
SUBTYPE STB IS INTEGER RANGE ID(-8) .. -5;
TYPE TB IS ARRAY (STB RANGE <>) OF INTEGER;
GENERIC
B1 : TB;
PROCEDURE PROC1;
PROCEDURE PROC1 IS
BEGIN
IF B1'FI... |
-- Copyright 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.
--
-- This... |
--
-- 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... |
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Ada.Characters.Wide_Wide_Latin_1;
with Ada.Directories;
with Ada.Streams;
with GNAT.OS_Lib;
with League.JSON.Values;
with League.Text_Codecs;
wit... |
package body CLIC_Ex.Commands.Double_Dash is
Upper_Case : aliased Boolean := False;
-------------
-- Execute --
-------------
overriding
procedure Execute (Cmd : in out Instance; Args : AAA.Strings.Vector)
is
begin
if Upper_Case then
Ada.Text_IO.Put_Line (AAA.Strings.To_Upper_C... |
-- Standard Ada library specification
-- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
... |
-- { dg-do run }
-- { dg-options "-gnatws -gnatVa" }
pragma Initialize_Scalars;
procedure init_scalar1 is
type Fixed_3T is delta 2.0 ** (- 4)
range - 2.0 ** 19 .. (2.0 ** 19 - 2.0 ** (- 4));
for Fixed_3T'Size use 3*8;
Write_Value : constant Fixed_3T := Fixed_3T(524287.875);
type singleton is array (1... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
package body Irc.Commands is
procedure Install_Commands (Conn : in out Connection) is
begin
-- general commands
Conn.On_Message ("001", Join_On_Ident'Access);
Conn.On_Message ("433", Nick_In_Use'Access);
Conn.On_Message ("PING", Ping_Server'Access);
Conn.On_Regexp ("... |
-- Generated at 2015-06-24 18:19:13 +0000 by Natools.Static_Hash_Maps
-- from src/natools-s_expressions-templates-dates-maps.sx
with Natools.Static_Maps.S_Expressions.Templates.Dates.Cmds;
with Natools.Static_Maps.S_Expressions.Templates.Dates.Zones;
package body Natools.Static_Maps.S_Expressions.Templates.Dates is... |
--- src/ahven-framework.adb.orig 2014-02-08 21:21:51.000000000 +0000
+++ src/ahven-framework.adb
@@ -14,6 +14,8 @@
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--
+with GNAT.Traceback.Symbolic;
+with GNAT.Regpat;
with Ada.Strings;
with Ada.Unchecked_Deallocation;
with Ada.Exceptions;
@@ -22,... |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "PentestTools"
type = "api"
function start()
set_rate_limit(1)
end
function check()
local c
local cfg = datasrc_config(... |
Foo (1, 0.0);
Foo (1);
Foo (Arg_2 => 0.0, Arg_1 => 1);
Foo (Arg_1 => 1);
|
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, 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 f... |
-- C41401A.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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
separate (Numerics)
function Dot_Product (Left_I, Right_J : in Int_Array;
Left_X, Right_Y : in Real_Vector) return Real is
Result : Real := 0.0;
I : Nat := Left_I'First;
J : Nat := Right_J'First;
L : constant Nat := Left_I'Last;
R : constant Nat := Right_J'Last;
begin
... |
package body agar.gui.widget.editable is
package cbinds is
procedure set_static
(editable : editable_access_t;
enable : c.int);
pragma import (c, set_static, "AG_EditableSetStatic");
procedure set_password
(editable : editable_access_t;
enable : c.int);
pragma import (c... |
package Rev with SPARK_Mode is
procedure Reve (S : in out String) with
SPARK_Mode,
Pre => S'First < Positive'Last / 2 and S'Last < Positive'Last / 2,
Post => (for all I in S'Range => S(I) = S'Old(S'First + S'Last - I));
end Rev;
|
with C.string;
package body GMP is
function Version return String is
S : constant C.char_const_ptr := C.gmp.qqgmp_version;
Length : constant Natural := Natural (C.string.strlen (S));
Result : String (1 .. Length);
for Result'Address use S.all'Address;
begin
return Result;
end Version;
function Default... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with GNAT.OS_Lib;
with System;
package body Epoll is
function epoll_create1
(flags : int)
return Epoll_Descriptor
with Import => True,
Convention => C,
External_Name ... |
-----------------------------------------------------------------------
-- users-tests-helpers -- Helpers for user creation
-- Copyright (C) 2011, 2012, 2013, 2014, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
--... |
package Numeric_Tests is
function Is_Numeric (Item : in String) return Boolean;
end Numeric_Tests;
|
with RP.GPIO;
with RP.I2C_Master;
with Pimoroni_LED_Dot_Matrix;
package body Matrix_Area_Word is
procedure Initialize is
package PLDM_0 is new Pimoroni_LED_Dot_Matrix (Byte_0_I2C,
Byte_0_Address);
package PLDM_1 is new Pimoroni_LED_Dot_Matrix (Byte_... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Associations;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Element... |
with HWIF;use HWIF;
--Use only north and east.
task Light_Rotator (dir : in Direction);
task body Light_Rotator is
if dir = North or dir = South then
task EastSwitch;
task body EastSwitch is
TrafficLightSwitcher(East);
end EastSwitch;
task WestSwitch;
task body WestSwitch is... |
-----------------------------------------------------------------------
-- are-installer -- Resource selector, preparer and installer
-- Copyright (C) 2012, 2017, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
with HAL; use HAL;
with HiFive1.LEDs; use HiFive1.LEDs;
with FE310;
with FE310.CLINT;
with FE310.Time; use FE310.Time;
with Interfaces; use Interfaces;
with IO;
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Cryptobox; use SPARKNaCl.Cryptobox;
with SPARKNaCl.Stream;
with TweetNaCl_API;
with RISCV.CSR; use... |
-----------------------------------------------------------------------
-- servlet-server -- Servlet Server
-- Copyright (C) 2009, 2010, 2011, 2012, 2015, 2016, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- yo... |
with RP.ROM;
pragma Unreferenced (RP.ROM);
package Runtime is
-- crt0.S expects this symbol to exist. It is called after main returns.
procedure OS_Exit (Status : Integer)
with Export => True,
Convention => C,
External_Name => "exit";
procedure HardFault_Handler
w... |
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with System;
private package CUPS.cups_pwg_h is
-- arg-macro: function PWG_FROM_POINTS (int)(((n) * 2540 + 36) / 72
-- return int)(((n) * 2540 + 36) / 72;
-- arg-macro: function PWG_TO_POINTS ((... |
-----------------------------------------------------------------------
-- awa-users -- Users module
-- Copyright (C) 2009, 2010, 2011, 2015, 2018, 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... |
with Ada.Characters.Handling;
with DOM.Core.Elements;
with LMCP_Message_Conversions;
with Common;
use Common;
with UxAS.Messages.lmcptask.AssignmentCostMatrix;
use UxAS.Messages.lmcptask.AssignmentCostMatrix;
with UxAS.Messages.lmcptask.TaskPlanOptions;
use UxAS.Messages.lmcptask.TaskPlanOptions;
with UxAS.Messages.lmc... |
------------------------------------------------------------------------------
-- --
-- Unicode Utilities --
-- UTF-8 Stream Decoder --
-- ... |
procedure Hello is
procedure example is
begin
meow := meow + meow;
end example;
procedure bark ( top, tip : INTEGER ; abc :STRING) is
a,b,c : ARRAY (1..5) of INTEGER;
begin
a(1):= 5;
end bark;
function foo return INTEGER is
begin
return 1;
end example;
function hi (hello:STRING) return FLOAT i... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Gtk.Window; use Gtk.Window;
with Gtk.Box; use Gtk.Box;
with Gtk.Drawing_Area; use Gtk.Drawing_Area;
with Glib; use Glib;
with Cairo; use Cairo;
with Glib.Main; use Glib.Main;
with Gdk.Window; use Gdk.Window;
with Gtk.Handlers; use Gtk.Handlers;
with Ada.Text_IO; use Ada.Text_IO;
use Gdk;
with Gtk.Widget; use Gtk.W... |
with Ada.Unchecked_Conversion;
with C.iconv;
with C.string;
package body iconv.Inside is
use type C.unsigned_int;
use type C.size_t;
function Do_One (
namescount : C.unsigned_int;
names : access C.char_const_ptr;
data : C.void_ptr)
return C.signed_int
with Convention => C;
function Do_One (
namescou... |
--*****************************************************************************
--*
--* PROJECT: BingAda
--*
--* FILE: q_csv-q_read_file.ads
--*
--* AUTHOR: Javier Fuica Fernandez
--*
--*****************************************************************************
with Ada.Container... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Copyright 2016,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 o... |
with ada.containers.ordered_sets, ada.text_io;
use ada.text_io;
procedure set_demo is
package cs is new ada.containers.ordered_sets (character); use cs;
function "+" (s : string) return set is
(if s = "" then empty_set else Union(+ s(s'first..s'last - 1), To_Set (s(s'last))));
function "-" (s : Set) return strin... |
with Tkmrpc.Types;
with Tkmrpc.Results;
package Tkmrpc.Servers.Ike
is
procedure Init;
-- Initialize IKE server.
procedure Finalize;
-- Finalize IKE server.
procedure Tkm_Version
(Result : out Results.Result_Type;
Version : out Types.Version_Type);
-- Returns the version of TKM.
... |
pragma License (Unrestricted);
-- runtime unit for ZCX (or SjLj, or Win64 SEH)
with C.unwind;
package System.Unwind.Representation is
pragma Preelaborate;
subtype Unwind_Exception_Class is C.unwind.Unwind_Exception_Class;
-- (a-exexpr-gcc.adb)
GNAT_Exception_Class : constant := 16#474e552d41646100#;
... |
-- Score PIXAL le 07/10/2020 à 16:23 : 100%
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;
procedure Ecrire_Entier is
function Puissance_Iteratif (Nombre: in Float ; Exposant : in Integer) return Float with
Pre => E... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- 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... |
-- Generated from glut.h
-- Date: Sun Apr 6 14:32:02 1997
--
-- Command line definitions:
-- -D__ANSI_C__ -D_LANGUAGE_C -DGENERATING_ADA_BINDING -D__unix -D__sgi
-- -D__mips -D__host_mips -D__EXTENSIONS__ -D__EDG -D__DSO__ -D__STDC__
-- -D_SYSTYPE_SVR4 -D_MODERN_C -D_MIPS_SZPTR=32 -D_MIPS_SZLONG=32
-... |
with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
message : String := "Are you sure I wrote this?";
begin
if not initialize_sodium_library then
Put_Line ("Initialization failed");
return;
end if;
declare
tag : Auth_Tag;
my_key : A... |
package GESTE_Fonts.FreeMonoOblique24pt7b is
Font : constant Bitmap_Font_Ref;
private
FreeMonoOblique24pt7bBitmaps : aliased constant Font_Bitmap := (
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#, 16#00#,
16#00#, 16#... |
package body Adda.Defaults is
function Hash
(Element : in Integer)
return Hash_Type is
begin
return Hash_Type (Element);
end Hash;
end Adda.Defaults;
|
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by John Self of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and t... |
-- Abstract :
--
-- Summarize error recover log.
--
-- Copyright (C) 2019 Stephen Leake All Rights Reserved.
--
-- This program is free software; you can redistribute it and/or
-- modify it under terms of the GNU General Public License as
-- published by the Free Software Foundation; either version 3, or (at
-- ... |
with Ada.Exceptions.Finally;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with System.Address_To_Named_Access_Conversions;
with System.Tasks;
package body Ada.Task_Attributes is
use type System.Address;
package Holder is
new Exceptions.Finally.Scoped_Holder (
System.Tasks.Attrib... |
-- C61008A.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... |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ file writer implementation --
-- |___/_|\_\_|_|____| by: Timm Felden ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with RP2040_SVD.UART;
with RP.Device;
with RP.UART;
with ItsyBitsy;
package body ItsyBitsy_UART_Interrupt_Handlers is
UART : RP.UART.UART_Port renames ItsyBitsy.UART;
procedure UART0_IRQ_Handler is
begin
-- if UART.Masked_IRQ_Status (IRQ => RP.UART.Transmit) then
-- UART.Clear... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package Global_Singleton is
procedure Set_Data (Value : Integer);
function Get_Data return Integer;
private
type Instance_Type is record
-- Define instance data elements
Data : Integer := 0;
end record;
Instance : Instance_Type;
end Global_Singleton;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
generic
package BitOperations.Search.Axiom with SPARK_Mode, Pure, Ghost is
end BitOperations.Search.Axiom;
|
--
-- procedure Bi_Diagonalize
--
-- Transforms matrix A into bi-diagonal matrix B,
--
-- U' * A * V = B
--
-- The diagonal and superdiagonals of B are non-zero. All other elements
-- of B are zero.
--
-- U and V are orthogonal matrices - constructed from the products of 2 x 2
-- Givens rotation matrices. Here,... |
--
-- Copyright (C) 2022 Jeremy Grosser <jeremy@synack.me>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Ada.Unchecked_Conversion;
package body ADXL345_SPI is
package body Register is
use HAL.SPI;
use HAL;
subtype Data_Array is SPI_Data_8b (1 .. Register_Type'Size / 8);
function To... |
with Ada.Directories;
with Ada.Finalization;
with Ada.Strings.Unbounded;
with Ada.Text_IO;
package DTG is
package AD renames Ada.Directories;
package ASU renames Ada.Strings.Unbounded;
package AIO renames Ada.Text_IO;
type Report is new Ada.Finalization.Limited_Controlled with record
Output_Fi... |
with Ada.Integer_Text_IO;
with Ada.Integer_Text_IO;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Numerics;
with Ada.Numerics.Discrete_Random;
package body Data is
protected body Mutex is
entry Seize when not Owned is
begin
Owned := True;
end Seize;
Procedure Release is
begin
... |
pragma Ada_2012;
with Utilities;
package body Fakedsp.Data_Streams.Wave is
subtype RIFF_Tag is String (1 .. 4);
RIFF_Name : constant RIFF_Tag := "RIFF";
WAVE_Format : constant RIFF_Tag := "WAVE";
Fmt_Name : constant RIFF_Tag := "fmt ";
Data_Name : constant RIFF_Tag := "data";
type Int32 is ... |
-----------------------------------------------------------------------
-- wiki-streams -- Wiki input and output streams
-- Copyright (C) 2011, 2012, 2013, 2015, 2016, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.