text
stringlengths
4
1.04M
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
-- { dg-do run } with GNAT.Time_Stamp; use GNAT.Time_Stamp; procedure test_time_stamp is S : constant String := Current_Time; function NN (S : String) return Boolean is begin for J in S'Range loop if S (J) not in '0' .. '9' then return True; end if; end loop; ...
-------------------------------------------------------------------------------- -- 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...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams; with League.Strings; with League.Base_Codecs; with JWS; procedure HS_256_Test is function "+" (Item : Wid...
-- Abstract : -- -- Ada language specific indent options and functions -- -- [1] ada.wy -- [2] ada-indent-user-options.el -- -- Copyright (C) 2017 - 2020 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...
-- Auto generated file. Don't edit -- Read copyright and license at the end of this file package body Encodings.Maps.CP_850 is Forward : Forward_Map (Character'Val(16#80#) .. Character'Last) := (Wide_Character'Val( 16#C7#), Wide_Character'Val( 16#FC#), Wide_Character'Val( 16#E9#), Wid...
with Ada.Text_IO; with Ada.Text_IO.Complex_IO; with Ada.Numerics.Generic_Real_Arrays; with Ada.Numerics.Generic_Complex_Types; with Ada.Numerics.Generic_Complex_Arrays; with Ada.Numerics.Generic_Elementary_Functions; with Ada.Numerics.Generic_Complex_Elementary_Functions; with Ada_Lapack; use Ada.Text_IO; procedure ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2020, AdaCore -- -- -- -- ...
-- sarge.adb - Implementation file for the Sarge command line argument parser project. -- Revision 0 -- Features: -- - -- Notes: -- - -- 2019/04/10, Maya Posch with Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; package body Sarge is --- SET ARGUMENT --- procedure setArgument(arg_short: in ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Definitions; with Program.Lexical_Elements; with Program.Elements.Subtype_Indications; with Program.Elements.Exp...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with xcb.xcb_setup_authenticate_t; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_setup_authenticate_iterator_t is -- Item -- type Item is record data : access xcb.xcb_setup_authenticate_t.Item; ...
-- 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_feedback_buffer_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; minor_opcode : aliased Interfaces.Unsi...
-- { dg-do compile } with Ada.Streams; use Ada.Streams; procedure Addr9_1 is type Signal_Type is mod 2 ** 16; type A_Item is record I : Signal_Type; Q : Signal_Type; end record with Size => 32; for A_Item use record I at 0 range 0 .. 15; Q at 2 range 0 .. 15; end record; ...
package body Problem_2 is function Solution_1( Max : Int128 ) return Int128 is N_1_Term : Int128 := 1; N_Term : Int128 := 1; Value : Int128 := 0; Sum : Int128 := 0; begin loop Value := N_1_Term + N_Term; exit when Value > Max; if Val...
----------------------------------------------------------------------- -- util-encoders-base16 -- Encode/Decode a stream in hexadecimal -- Copyright (C) 2009, 2010, 2011, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licens...
with impact.d3.Shape.concave, impact.d3.triangle_Callback; package impact.d3.Shape.concave.static_plane -- -- Simulates an infinite non-moving (static) collision plane. -- is type Item is new impact.d3.Shape.concave.Item with private; --- Forge -- function to_static_plane_Shape (planeNormal...
package Giza.Bitmap_Fonts.FreeSansOblique12pt7b is Font : constant Giza.Font.Ref_Const; private FreeSansOblique12pt7bBitmaps : aliased constant Font_Bitmap := ( 16#0C#, 16#61#, 16#86#, 16#18#, 16#63#, 16#0C#, 16#30#, 16#C2#, 16#18#, 16#61#, 16#00#, 16#00#, 16#C3#, 16#00#, 16#CF#, 16#3C#, 16#E2#, 16#8A#, 1...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
<?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...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
pragma Ada_2012; with Tokenize.Token_Vectors; with Ada.Text_IO; use Ada.Text_IO; package body EU_Projects is function Verbose_To_ID (X : String) return Dotted_Identifier is begin Put_Line ("TT(" & X & ")" & Is_Valid_ID (X)'Image); return To_Bounded_String (X); end Verbose_To_ID; -----------...
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. with System; use System; with Interfaces.C; use Interfaces; function GBA.BIOS.Memset ( Dest : in Address; Value : Integer; Num_Bytes : C.size_t ) return Address with Linker_Section => ".iwram"; pragma Machine_Attribute (Memset, "ta...
------------------------------------------------------------------------------- -- Copyright (C) 2020-2030, per.s.sandberg@bahnhof.se -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- ...
-- POK header -- -- The following file is a part of the POK project. Any modification should -- be made according to the POK licence. You CANNOT use this file or a part -- of a file for your own project. -- -- For more information on the POK licence, please see our LICENCE FILE -- -- Pleas...
-- -- Copyright (C) 2015-2018 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. -- -- ...
-- 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...
-- This spec has been automatically generated from msp430g2553.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; -- ADC10 package MSP430_SVD.ADC10 is pragma Preelaborate; --------------- -- Registers -- --------------- -- ADC10 Data Transfer C...
-- -- ABench2020 Benchmark Suite -- -- Binary Search Tree Program -- -- Licensed under the MIT License. See LICENSE file in the ABench root -- directory for license information. -- -- Uncomment the line below to print the result. -- with Ada.Text_IO; use Ada.Text_IO; procedure Binary_Search_Tree is type Vecto...
-- 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_extensions_reply_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; names_len : aliased Interfac...
-- This spec has been automatically generated from STM32L4x6.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.CRC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype IDR_IDR_Field is HAL.U...
with p2; use p2; procedure main with SPARK_Mode is begin -- trying to reprouce the problem StratoX has in hil.ads, but doesn't show up here p2.foo; end main;
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is type R is record A: Integer; end record; procedure F(X: in out Integer) is begin X := 0; end; procedure G(X: in R) is begin F(X.A); end; X: R; begin G(X); end Test;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- { 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"} }...
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
-- MIT License -- -- Copyright (c) 2020 Max Reznik -- -- 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, mo...
-- 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...
-- C45672A.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 spec has been automatically generated from STM32F427x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with System; with HAL; package STM32_SVD.USART is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------- -- SR_Register -- ------------...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- CD5003F.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 CLIC.TTY; use CLIC.TTY; with Ada.Text_IO; use Ada.Text_IO; package body CLIC_Ex.Commands.TTY is package TTY renames CLIC.TTY; ------------- -- Execute -- ------------- overriding procedure Execute (Cmd : in out Instance; Args : AAA.Strings.Vector) is begin Put_Line (TTY.Bold ("CLI...
generic package any_Math.any_fast_Rotation is function to_Rotation (Angle : in Real) return access constant Matrix_2x2; private pragma Inline_Always (to_Rotation); end any_Math.any_fast_Rotation;
gcc -c main.c gnatmake -c exported.adb gnatbind -n exported.ali gnatlink exported.ali main.o -o main
-- 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- C35507N.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 COMPONENTS -- -- -- -- ...
-- Auto generated file. Don't edit -- Read copyright and license at the end of this file package body Encodings.Maps.CP_875 is Forward : Forward_Map (Character'Val( 16#4#) .. Character'Last) := (Wide_Character'Val( 16#9C#), Wide_Character'Val( 16#9#), Wide_Character'Val( 16#86#), Wid...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- POK header -- -- The following file is a part of the POK project. Any modification should -- be made according to the POK licence. You CANNOT use this file or a part -- of a file for your own project. -- -- For more information on the POK licence, please see our LICENCE FILE -- -- Pleas...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Abstract: -- -- Root package for Stephe's Ada Library packages. -- -- See sal.html for more information. -- -- See http://stephe-leake.org/ada/sal.html for the -- latest version. -- -- Contact Stephe at stephen_leake@stephe-leake.org. -- -- Copyright (C) 1997 - 2004, 2008, 2009, 2015, 2017, 2018 Free Software...
with SDL.Events.Windows, SDL.Events.Keyboards, SDL.Events.Events, SDL.Events.Mice, SDL.Video.Windows.Makers, SDL.Log, ada.Text_IO; package body gel.Window.sdl is package std_SDL renames standard.SDL; use std_SDL, std_SDL.Events; function to_gel_Key (From : in std_...
with Ada.Text_IO; with GC; procedure version is begin Ada.Text_IO.Put_Line (GC.Version); end version;
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Element_Filters; with Program.Element_Vectors; with Program.Elements.Identifiers; with Program.Elements.Selected_Components; with Program.Eleme...
-- 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_gen_textures_request_t is -- Item -- type Item is record major_opcode : aliased Interfaces.Unsigned_8; minor_opcode : aliased Interfaces.Unsigne...
----------------------------------------------------------------------- -- util -- Various Utility Packages -- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011, 2012, 2013, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Licen...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- openapi-testsuite - Swagger Test suite -- 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...
package body openGL.Screen is -- function Thin (Self : in Item) return xcb.xcb_screen_t.Pointer -- is -- begin -- return Self.Thin; -- end Thin; -- procedure Thin_is (Self : in out Item; Now : in xcb.xcb_screen_t.Pointer) -- is -- begin -- Self.Thin := Now; -- end Thin...
-- 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...
############################################################################# ## #W id8.ada GAP library of id's Hans Ulrich Besche ## ID_GROUP_TREE.next[8].next[1].next[105]:= rec( fp:= [ 4304, 6104, 6704, 7004, 7304, 7604, 7904, 8204, 8504, 8804, 9104, 9404, 9704, 10004, 12704, 13904, 1...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 Quentin Dauprat (Heziode) <Heziode@protonmail.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- c...
------------------------------------------------------------------------------ -- Copyright (c) 2016, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
-- C36302A.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...
pragma Warnings (Off); pragma Ada_95; with System; with System.Parameters; with System.Secondary_Stack; package ada_main is gnat_argc : Integer; gnat_argv : System.Address; gnat_envp : System.Address; pragma Import (C, gnat_argc); pragma Import (C, gnat_argv); pragma Import (C, gnat_env...
-- { dg-do compile } package body Frame_Overflow is function -- { dg-error "too large" } Set_In (Bitmap : Bitmap_T; Bitpos : Bitpos_Range_T) return Bitmap_T is Result: Bitmap_T := Bitmap; begin Result.Bits (Bitpos) := True; return Result; end; function -- { dg-error "too large"...
package body agar.gui.unit is package cbinds is function find (key : cs.chars_ptr) return unit_const_access_t; pragma import (c, find, "AG_FindUnit"); function best (unit_group : unit_const_access_t; n : c.double) return unit_const_access_t; pragma import (c, best, "AG_BestUn...
with SPARKNaCl; use SPARKNaCl; with SPARKNaCl.Core; use SPARKNaCl.Core; with SPARKNaCl.Debug; use SPARKNaCl.Debug; with SPARKNaCl.Secretbox; use SPARKNaCl.Secretbox; with SPARKNaCl.Stream; with Ada.Text_IO; use Ada.Text_IO; procedure Secretbox is Firstkey : constant Core.Salsa20_Key := ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
pragma Ada_2012; pragma Style_Checks (Off); pragma Warnings ("U"); with Interfaces.C; use Interfaces.C; with arm_math_types_h; with sys_ustdint_h; package quaternion_math_functions_h is procedure arm_quaternion_norm_f32 (pInputQuaternions : access arm_math_types_h.float32_t; pNorms : access arm_math_ty...
with GESTE; with GESTE.Text; with Ada.Text_IO; with Console_Char_Screen; with GESTE_Fonts.FreeMono8pt7b; procedure Text_Dirty is package Font_A renames GESTE_Fonts.FreeMono8pt7b; package Console_Screen is new Console_Char_Screen (Width => 45, Height => 20, Buffer_Size => 45, ...
----------------------------------------------------------------------- -- ado-schemas-databases -- Database creation -- Copyright (C) 2018, 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...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- This spec has been automatically generated from STM32L4x1.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.I2C is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_DNF_Field is HAL.U...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- asf-parts-web -- ASF Parts on top of AWS attachments -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
----------------------------------------------------------------------- -- Regtests.Images.Model -- Regtests.Images.Model ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: https://...
with openGL.Buffer.general; package openGL.Buffer.texture_coords is new openGL.Buffer.general (base_Object => Buffer.array_Object, Index => Index_t, Element => Coor...
---------------------------------------------------------------- -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2003 Dmitriy Anisimkov -- -- ...
--////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) -- 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...
----------------------------------------------------------------------- -- akt-commands -- Ada Keystore Tool commands -- Copyright (C) 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 ex...
-- Copyright 2013-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. -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...