text
stringlengths
4
1.04M
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Identifiers; with Program.Elements.Expressions; with Program.Elements.At_Clauses;...
-------------------------------------------------------------------------------- -- Copyright (C) 2020 by Heisenbug Ltd. (gh+owm@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 Sam Ho...
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2021 Zane Myers -- -- 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 witho...
<?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="...
-- Copyright 2011-2014 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 Prefix_Notation is type My_Type is tagged private; procedure Operator_Zero (X : My_Type); procedure Operator_One (X : My_Type; A : Integer); private type My_Type is tagged null record; procedure Operator_Zero (X : My_Type) is null; procedure Operator_One (X : My_Type; A : Integer) is nu...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Glfw.Enums; with Glfw.Display; with Glfw.Events.Keys; with Glfw.Events.Mouse; with Glfw.Events.Joysticks; with Interfaces.C.Strings; with System; private package Glfw.API is type Raw_Video_M...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- RUN: %llvmgcc -c %s procedure Array_Size is subtype S is String (1 .. 2); type R is record A : S; end record; X : R; begin null; end;
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_envp); gnat_...
------------------------------------------------------------------------------ -- Copyright (c) 2013-2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
pragma License (Unrestricted); -- extended unit specialized for Windows with Ada.IO_Exceptions; package Ada.Hierarchical_File_Names is -- "Pure" and detailed version of Ada.Directories.Hierarchical_File_Names. -- This package is system-specific. pragma Pure; -- path delimiter subtype Path_Delimiter...
-- ----------------------------------------------------------------- -- -- -- -- This is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public -- -- License as published by the ...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with GNAT.OS_Lib; with Ada.Command_Line; with Ada.Strings.Unbounded; procedure SynthExec is package OSL renames GNAT.OS_Lib; package CLI renames Ada.Command_Line; package ASU renames Ada.Strings.Unbounded...
with Ada.Strings.Naked_Maps.Case_Folding; function Ada.Strings.Generic_Equal_Case_Insensitive (Left, Right : String_Type) return Boolean is Mapping : constant not null Naked_Maps.Character_Mapping_Access := Naked_Maps.Case_Folding.Case_Folding_Map; Left_Last : Natural := Left'First - 1; Right_Last : N...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Finalization; package SoE is -- process Odd will be activated as part of the elaboration -- of the enclosing package ----------------------------------- task Odd is -- we want the user to set the limit of the search range entry Set_Limit (User_Limit : Positive); end Od...
--***************************************************************************** --* --* PROJECT: BINGADA --* --* FILE: q_bingo.adb --* --* AUTHOR: Javier Fuica Fernandez --* --***************************************************************************** with Q_GEN_SHUFFLE; -- Soun...
----------------------------------------------------------------------- -- druss-commands-wifi -- Wifi related commands -- Copyright (C) 2017, 2018, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
with Ada.Finalization; generic type T is private; package Controlled6_Pkg is type Node_Type is record Item : T; end record; type Node_Access_Type is access Node_Type; end Controlled6_Pkg;
----------------------------------------------------------------------- -- util-log-appenders -- Log appenders -- Copyright (C) 2001 - 2021 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...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- 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...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Characters.Handling; with Ada.Strings.Fixed; with Ada.Directories; package body Dot is ------------ -- EXPORTED ------------ function To_ID_Type (Item : in Wide_String) return ID_Type is begin return To_ID_Type (Ada.Characters.Handling.To_String(Item)); end To_ID_Type; -- NOT TASK...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2018, 2020 Free Software Foundation, Inc. -- -- This file is part of the WisiToken package. -- -- 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 Softwar...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Elements.Defining_Identifiers; with Program.Lexical_Elements; with Program.Elements.A...
-- Based on libgasandbox.draw.h with GL.Objects.Programs; with C3GA; with Multivector_Analyze; with Palet; package GA_Draw is type Method_Type is (Draw_Method_Undefined, Draw_Bivector_Circle, Draw_Bivector_Parallelogram, Draw_Bivector_Parallelogram_No_Vectors,...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="11"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...
-- Copyright 2020-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. -- -- ...
<?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="...
<?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="...
-- Adobe Experience Manager (AEM) API -- Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API -- -- The version of the OpenAPI document: 3.5.0_pre.0 -- Contact: opensource@shinesolutions.com -- -- NOTE: This package is auto generated by OpenAPI-Generator 5.2.1. -- https://openapi-generat...
-- kvflyweights-basic_hashtables.ads -- A package of non-task-safe hash tables for the KVFlyweights packages -- Copyright (c) 2016, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice ...
separate (Numerics.Sparse_Matrices) -- function Minus (Left : in Sparse_Matrix; -- Right : in Sparse_Matrix) return Sparse_Matrix is -- Result : Sparse_Matrix := Right; -- begin -- for X of Result.X loop -- X := -X; -- end loop; -- return Left + Result; -- end Minus; function Minus (Left...
-- 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...
with System.Address_To_Named_Access_Conversions; with System.Zero_Terminated_Strings; with C.stdlib; package body System.Native_IO.Names is use type C.char; use type C.char_ptr; use type C.size_t; function strlen (s : not null access constant C.char) return C.size_t with Import, Convention =...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2011-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. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- ...
----------------------------------------------------------------------- -- gen-artifacts-xmi -- UML-XMI artifact for Code Generator -- Copyright (C) 2012, 2013, 2014, 2015, 2016, 2018, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Numerics.Generic_Elementary_Functions, Ada.Numerics.Float_Random; with Ada.Numerics, Ada.Containers.Vectors, Ada.Text_IO; package Numerics is π : constant := Ada.Numerics.π; -------- Define types (Real, Int, Pos, Nat) ---------------------- type Real is new Long_Long_Float range Long_Long_F...
with Ada.Numerics.Distributions; package body Ada.Numerics.Discrete_Random is function Random (Gen : Generator) return Result_Subtype is function Do_Random is new Distributions.Linear_Discrete_Random ( MT19937.Unsigned_32, Result_Subtype, Generator, Ran...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
package body Bounded_Stack with SPARK_Mode is procedure Push (S : in out Stack; E : Element_Type) is begin S.Content (S.Top + 1) := E; S.Top := S.Top + 1; end Push; procedure Pop (S : in out Stack; E : out Element_Type) is begin E := S.Content (S.Top); S.Top := S.Top - 1; end...
with AdaM.Entity, AdaM.subtype_Indication, AdaM.access_Definition, Ada.Containers.Vectors, Ada.Streams; package AdaM.component_Definition is type Item is new Entity.item with private; -- View -- type View is access all Item'Class; procedure View_write (Stream : not null ac...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Lzma.Vli; with System; with Lzma.Base; with Ada.Streams; package Lzma.Filter is LZMA_FILTERS_MAX : constant := 4; -- /usr/include/lzma/filter.h:26 --* -- * \file lzma/filter.h -- * \brief Common filter related types and fu...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
generic package BitOperations.Shift.Axiom.Logic_Left with SPARK_Mode, Pure, Ghost is pragma Warnings (GNAT, Off, "postcondition does not check the outcome of calling"); procedure Equal_Mult_By_Power_2 (Value : Modular; Amount : Natural) with Pre => Amount in 0 .. Modular'Size, Post => (BitOperati...
-- Abstract : -- -- Implement [McKenzie] error recovery, extended to parallel parsers. -- -- References: -- -- [McKenzie] McKenzie, Bruce J., Yeatman, Corey, and De Vere, -- Lorraine. Error repair in shift reduce parsers. ACM Trans. Prog. -- Lang. Syst., 17(4):672-689, July 1995. Described in [Grune 2008] ref 32...
-- Copyright 2012-2019 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. -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Elements.Component_Definitions; with Program.Elements.Formal_Unconstrained_Ar...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
package DECL_CTX_Use is procedure Check_1; procedure Check_2; end;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- This spec has been automatically generated from STM32L4x3.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.DMA is pragma Preelaborate; --------------- -- Registers -- --------------- -- interrupt status register ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Representation_Clauses; with Program.Lexical_Elements; with Program.Elements.Expressions; package Program.Eleme...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- AWA.Sysadmin.Models -- AWA.Sysadmin.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- Ada Generator: https://ada-...
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Glfw.API; with Glfw.Enums; package body Glfw.Windows.Hints is procedure Reset_To_Defaults renames API.Default_Window_Hints; procedure Set_Resizable (Value : Boolean) is begin API....
--////////////////////////////////////////////////////////// -- // -- // SFML - Simple and Fast Multimedia Library -- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com) -- // -- // This software is provided 'as-is', without any express or implied warranty. -- // In no event will the authors be held liabl...
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; use HAL.Filesystem; with Compare...
----------------------------------------------------------------------- -- stemmer -- Multi-language stemmer with Snowball generator -- Copyright (C) 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
with Loop_Optimization10_Pkg; use Loop_Optimization10_Pkg; package Loop_Optimization10 is type Dual_Axis_Type is (One, Two); type Array_Real_Type is array (Dual_Axis_Type) of Float; type Array_Limit_Type is array (Dual_Axis_Type) of Limit_Type; function F (Low, High : in Array_Real_Type) return Arra...
<?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...
-- 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_get_screen_saver_reply_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; pad0 : aliased Int...
-- Copyright 2008 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
-- Copyright 2014-2017 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. -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- -- This implementation overlays Ada.Containers.Vectors.Vector right over the interface. -- This is a less evident composition, but (with minimal code changes) allows -- direct access to all ACV.Vector methods, even those not explicitly declared. -- -- Copyright (C) 2018 George SHapovalov <gshapovalov@gmail.com> -- -...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="11"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="...
-- { dg-do compile } with Aggr16_Pkg; use Aggr16_Pkg; package body Aggr16 is type Arr is array (1 .. 4) of Time; type Change_Type is (One, Two, Three); type Change (D : Change_Type) is record case D is when Three => A : Arr; when Others => B : Boolean; end case; end reco...
with Ada.Text_IO; with Intcode.Op; use Intcode.Op; package body Intcode is protected body Port is entry Put(I: in Memory.Value) when Status /= Full is begin if Status = Empty then Value := I; Status := Full; end if; end Put; entry Get(X: out Maybe_M...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- 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_timestamp_iterator_t is -- Item -- type Item is record data : access xcb.xcb_timestamp_t; the_rem : aliased Interfaces.C.int; index : a...
----------------------------------------------------------------------- -- are-generator-c -- Generator for C/C++ -- Copyright (C) 2021 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...
------------------------------------------------------------------------------- -- Copyright (c) 2017, 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 of s...
-- Copyright 2008-2019 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) 2015-2016, AdaCore -- -- -- -- ...
with Interfaces.C, System; use type System.Address; package body FLTK.Widgets.Buttons is procedure button_set_draw_hook (W, D : in System.Address); pragma Import (C, button_set_draw_hook, "button_set_draw_hook"); pragma Inline (button_set_draw_hook); procedure button_set...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- util-encoders-sha1 -- Compute SHA-1 hash -- Copyright (C) 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exce...
--------------------------------- -- GID - Generic Image Decoder -- --------------------------------- -- -- Private child of GID, with helpers for identifying -- image formats and reading header informations. -- with GID.Buffering, GID.Color_tables, GID.Decoding_JPG, GID.Decoding_PNG; with...
-- 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 = "Robtex" type = "api" function start() setratelimit(1) end function vertical(ctx, domain) local cfg = datasrc_config() ...
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_selection_notify_event_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; pad0 : aliased Interfaces.Unsigne...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- private with Ada.Containers.Hashed_Sets; private with Incr.Nodes.Hash; with LSP.Messages; with LSP.Types; with Ada_LSP.Ada_Parser_Da...