text
stringlengths
4
1.04M
-- C87B14A.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 Memory.RAM; use Memory.RAM; with Memory.SPM; use Memory.SPM; package body Test.SPM is procedure Run_Tests is ram : constant RAM_Pointer := Create_RAM(latency => 100, word_size => 8); spm : SPM_Pointer := Create_SPM(ram, 1024, 1...
------------------------------------------------------------------------------ -- Copyright (c) 2011, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
with NCurses; use NCurses; with Board; use Board; with Ada.exceptions; with Ada.Text_IO; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with GNAT.Command_Line; use GNAT.Command_Line; with GNAT.Sockets; use GNAT.Sockets; procedure Chess is -- pragma Suppress(All_Checks); type Game_Options is (None, Network, Local); ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- -- Copyright (C) 2019, AdaCore -- -- This spec has been automatically generated from FE310.svd pragma Ada_2012; pragma Style_Checks (Off); with System; package Interfaces.FE310.PLIC is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- subty...
----------------------------------------------------------------------- -- awa-images-servlets -- Serve files saved in the storage service -- 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...
----------------------------------------------------------------------- -- awa-mail-module-tests -- Unit tests for Mail module -- Copyright (C) 2012, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Tcl.Lists.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Tcl.Lists.Test_Data .Test with ...
with Approximation, Ada.Numerics.Elementary_Functions; procedure Test_Approximations is package A is new Approximation(Float, Ada.Numerics.Elementary_Functions.Sqrt, Ada.Numerics.Elementary_Functions."**"); use type A.Number; X1: A.Number := ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" ver...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
procedure Diff (X, Y : in Natural; Z : out Natural) with SPARK_Mode, Depends => (Z => (X, Y)) is begin Z := X + X; end Diff;
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
-- public domain with Ada.Calendar; with Ada.Strings.Maps; with Interfaces; package String_Ops is pragma Elaborate_Body; type String_Pointer_Type is access String; -- All the control characters plus space and non-breaking-space. -- function Is_White_Space (Char : in Character) return Boolea...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright 2019-2020 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. -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2018, AdaCore -- -- -- -- ...
-- convert UCD/UnicodeData.txt, UCD/CompositionExclusions.txt -- bin/ucd_normalization -r $UCD/UnicodeData.txt $UCD/CompositionExclusions.txt > ../source/strings/a-ucdnor.ads -- bin/ucd_normalization -u $UCD/UnicodeData.txt $UCD/CompositionExclusions.txt > ../source/strings/a-ucnoun.ads with Ada.Command_Line; use Ada.C...
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Statistics.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Statistics.Test_Data .Test with ...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Apsepp.Generic_Shared_Instance; with Apsepp.Output_Class; use Apsepp.Output_Class; package Apsepp.Output is package Shared_Instance is new Generic_Shared_Instance (Output_Interfa); subtype...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_keycode32_iterator_t is -- Item -- type Item is record data : access xcb.xcb_keycode32_t; the_rem : aliased Interfaces.C.int; index : a...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
pragma License (Unrestricted); private with System.UTF_Conversions.From_8_To_16; private with System.UTF_Conversions.From_8_To_32; private with System.UTF_Conversions.From_16_To_32; private with System.UTF_Conversions.From_16_To_8; private with System.UTF_Conversions.From_32_To_8; private with System.UTF_Conversions.Fr...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Selected_Components is function Create (Prefix : not null Program.Elements.Expressions.Expressio...
----------------------------------------------------------------------- -- gen-model-list -- List bean interface for model objects -- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
-- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Ships.Test_Data.Tests.Modules_Container.Test_Data.Tests is type Test is new GNATtest_Generated.GNATtest_Standard.Ships.Te...
------------------------------------------------------------------------------ -- -- -- Ada binding for OpenGL/WebGL -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Abstract : -- -- see spec -- -- Copyright (C) 2014 - 2019 All Rights Reserved. -- -- The WisiToken package 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 your option) any ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...
-------------------------------------------------------------------------------------------------------------------- -- 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...
-- 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. name = "AnubisDB" type = "api" function start() set_rate_limit(1) end function vertical(ctx, domain) scrape(ctx, {['url']=build_url(domain)}) end function buil...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
generic type Element_Type is private; type Index_Type is (<>); type Collection is array(Index_Type range <>) of Element_Type; with function "<" (Left, right : element_type) return boolean is <>; procedure Generic_Heapsort(Item : in out Collection);
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2010, Alexander Senier -- Copyright (C) 2010, secunet Security Networks AG -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or withou...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" ver...
-- { dg-do compile } with System; package SSO1 is type R is record -- { dg-error "inconsistent with bit order" } B : Boolean; end record; for R'Bit_Order use System.Low_Order_First; for R'Scalar_Storage_Order use System.High_Order_First; -- { dg-warning "no component clause" } type RW is reco...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Calendar; private with Ada.Finalization; package taglib is type File (<>) is tagged limited private; type Tag (<>) is tagged limited private; type AudioProperties (<>) is tagged limited private; procedure set_strings_unicode (unicode : Boolean); procedure set_string_management_enabled (mana...
------------------------------------------------------------------------------ -- -- -- Unicode Utilities -- -- -- -- ...
-- Copyright 2013-2020 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. -- -- ...
package kv.avm is pragma Pure; end kv.avm;
-- Copyright 2011-2016 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. -- -- ...
-- Copyright 2005-2015 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. -- -- ...
----------------------------------------------------------------------- -- gen-commands-project -- Project creation command for dynamo -- 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...
-- 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 :...
with Ada.Text_IO; with CryptAda.Digests.Message_Digests.MD4; with CryptAda.Digests.Hashes; with CryptAda.Pragmatics; with CryptAda.Utils.Format; procedure RC_MD4 is use CryptAda.Digests.Message_Digests; use CryptAda.Digests; use CryptAda.Pragmatics; function To_Byte_Array (Item : String) return Byte_Arra...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with swig; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_list_installed_colormaps_reply_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; pad0 : aliased...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package Incr.Parsers is pragma Pure; end Incr.Parsers;
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with System; limited with color_h; with error_h; with Interfaces.C.Strings; package tileset_h is -- BSD 3-Clause License -- * -- * Copyright © 2008-2021, Jice and the libtcod contributors. -- * All rights reserved. -- * -- *...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Filesystem.Native; use Filesystem.Native; with Test_Directories; use Test_Directories; with File_Block_Drivers; use File_Block_Drivers; with File_IO; use File_IO; with Filesystem.FAT; use Filesystem.FAT; with HAL.Filesystem; with GNAT.MD5; use...
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro> -- -- 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, cop...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
package body NCurses is procedure Start_Color_Init is begin Start_Color; Init_Color_Pair(1, COLOR_WHITE, COLOR_BLACK); Init_Color_Pair(2, COLOR_BLACK, COLOR_WHITE); Init_Color_Pair(3, COLOR_RED, COLOR_BLACK); Setup; end Start_Color_Init; procedure Pretty_Print_Window (Item : in String) is begin Prin...
with impact.d3.Vector; with impact.d3.collision.Proxy; with Interfaces.C; with ada.unchecked_Deallocation; with impact.d3.Scalar; with impact.d3.Containers; -- #include "impact.d3.convex_HullShape.h" -- #include "BulletCollision/CollisionShapes/impact.d3.collision.Margin.h" -- -- #include "LinearMath/impact.d3.Quate...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- C45274B.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...
package Nodes is -- Type Node definition type Node is tagged private; type Node_Ptr is access Node; private -- Type node data-structre type Node is tagged record end record; end Nodes;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with ada.text_io; use ada.text_io; with spi; use spi; with stdint_h; use stdint_h; with Interfaces.C.Strings; use Interfaces.C.Strings; with ada.command_line; use ada.command_line; with ada.exceptions; use ada.exceptions; procedure Send_Byte is device : aliased SPI_D...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Sf.System.Sleep; use Sf, Sf.System, Sf.System.Sleep; with Sf.System.Time; use Sf.System.Time; with Sf.Audio...
pragma Style_Checks ("NM32766"); pragma Wide_Character_Encoding (Brackets); --------------------------------------------------- -- This file has been generated automatically from -- cbsg.idl -- by IAC (IDL to Ada Compiler) 20.0w (rev. 90136cd4). --------------------------------------------------- -- NOTE: If you m...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- CE2108H.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 Ada.Containers.Vectors; package wa1 is type Repr(<>) is private; type Abstract_Base is interface; function ToRepr(AB : Abstract_Base) return Repr is abstract; procedure FromRepr(AB : in out Abstract_Base; rp : Repr) is abstract; procedure Set_Smth (AB : in out Abstract_Base'Class; smth : ...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2018 - 2019 Free Software Foundation, Inc. -- -- This library 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 your option) ...
-- CC1005B.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 RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- CE3906F.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...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_delete_textures_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; minor_opcode : aliased Interfaces.Unsi...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- Ada Labs -- -- -- -- Copyright (C) 2008-2009, AdaCore -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
pragma Assertion_Policy (Check); with Libadalang.Analysis; with Extraction.Node_Edge_Types; with Extraction.Utilities; package body Extraction.Direct_Calls is use type LALCO.Ada_Node_Kind_Type; function Is_Duplicate_Callsite (Name : LAL.Name) return Boolean; function Is_Duplicate_Callsite (Name : LAL.Name)...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2017 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 = "SecurityTrails" type = "api" function start() setratelimit(1) end function check() if (api ~= nil and api.key ~= nil and a...
with Interfaces; use Interfaces; with Ada.Real_Time; use Ada.Real_Time; with Ada_Voxel; with SDL_Display; with Color_Map; with Height_Map; with Keyboard; with Ada.Numerics.Generic_Elementary_Functions; procedure Main is Screen_Width : constant := 800; Screen_Height : constant := 600; package Float_Fun...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Definitions; package Program.Elements.Formal_Type_Definitions is pragma Pure (Program.Elements.Formal_Type_...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with NeuralNet; with cl_objects; with opencl; with Ada.Finalization; with Ada.Containers.Vectors; with System; package GpuInference is pragma Elaborate_Body; type NNData is tagged limited private; function Create(ctx: cl_objects.Context_Access; nn: in NeuralNet.Net; cl_code: out opencl.Status) return NNDat...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package Meta is pragma Pure; end Meta;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
with POSIX.File_Status, Ada.Unchecked_Deallocation, Ada.IO_Exceptions; package body Shell.Directory_Iteration is -- Cursor -- function Has_Element (Pos : in Cursor) return Boolean is begin return Pos.Directory_Entry /= null; end Has_Element; -- Directory -- functio...
--------------------------------------------------------------------------------- -- 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 Ada.Text_IO; package body Eval is procedure Show (E : in Expr) is begin case E.Kind is when Add => Ada.Text_IO.Put ("Add("); when Sub => Ada.Text_IO.Put ("Sub("); when Mul => Ada.Text_IO.Put ("Mul("); when Div => Ada.T...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with HAL.UART; with Cortex_M.NVIC; with RP2040_SVD.Interrupts; with RP.Clock; with RP.Device; with RP.GPIO; with RP.UART; with ItsyBitsy; with ItsyBitsy_UART_Interrupt_Handlers; procedure ItsyBitsy_Slave_Interrupt_Main is subtype Buffer_Range is Integer range 1 .. 1; UART : RP.UART.UART_Port r...