CombinedText
stringlengths
4
3.42M
------------------------------------------------------------------------------ -- EMAIL: <darkestkhan@gmail.com> -- -- License: ISC License (see COPYING file) -- -- -- -- ...
pragma License (Unrestricted); -- runtime unit specialized for Linux package System.Storage_Map is pragma Preelaborate; function Load_Address return Address; Growing_Down_Is_Preferred : constant Boolean := True; -- bias of mmap end System.Storage_Map;
------------------------------------------------------------------------------ -- -- -- File: -- -- formatted_output-enumeration_output.adb -- -- ...
----------------------------------------------------------------------- -- ado-sequences-tests -- Test sequences factories -- Copyright (C) 2012 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 fi...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with AUnit.Test_Suites; package Text.Suite is function Suite return AUnit.Test_Suites.Access_Test_Suite; end Text.Suite;
------------------------------------------------------------------------------ -- Copyright (c) 2015-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
<?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...
-- { dg-do compile } -- { dg-options "-O2 -fdump-tree-optimized" } package body Noinline2 is function Inner (A, B : Integer) return Integer; pragma No_Inline (Inner); function Inner (A, B : Integer) return Integer is begin return A + B; end; function F (A, B : Integer) return Integer is begin ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
package body System.File_Control_Block is function Stream (File : AFCB_Ptr) return Interfaces.C_Streams.FILEs is begin raise Program_Error; -- FILE * is not used in drake return Stream (File); end Stream; end System.File_Control_Block;
-- AOC 2020, Day 8 with Ada.Text_IO; use Ada.Text_IO; with Day; use Day; procedure main is acc : constant Integer := acc_before_repeat("input.txt"); h : constant Integer := acc_after_terminate("input.txt"); begin put_line("Part 1: " & Integer'Image(acc)); put_line("Part 2: " & Integer'Image(h)); end main;
with TestAPI.Clients; with TestAPI.Models; with Swagger; with Util.Http.Clients.Curl; with Ada.Text_IO; with Ada.Command_Line; with Ada.Calendar.Formatting; with Ada.Exceptions; procedure TestAPI.Client is use Ada.Text_IO; procedure Usage; Server : constant Swagger.UString := Swagger.To_UString ("http://...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Extension_Aggregates is function Create (Left_Bracket_Token : not null Program.Lexical_Elements .Lexical_Elemen...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- part of AdaYaml, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Text_IO; package Yaml.Destination.Text_IO is type Instance is new Destination.Instance with private; function As_Destination (File : Ada.Text_IO.File_Access) return Pointer w...
----------------------------------------------------------------------- -- awa-mail-components-attachments -- Mail UI Attachments -- 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 use ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
-- This spec has been automatically generated from STM32WL5x_CM0P.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.PKA is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_MODE_Field is ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Expressions; with Program.Lexical_Elements; package Program.Elements.Numeric_Literals is pragma Pure (Progr...
-- Copyright 2008-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. -- -- ...
------------------------------------------------------------------------------ -- Copyright (C) 2012-2020 by Heisenbug Ltd. -- -- 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 Hocevar. See the LICE...
-- CB3003A.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...
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired) -- -- Copyright William A. Whitaker (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is C...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
with AWS.Config.Set; with AWS.Server; with @_Project_Name_@.Callbacks; procedure @_Project_Name_@.Main is use AWS; Web_Server : Server.HTTP; Web_Config : Config.Object; begin -- Setup Config.Set.Server_Host (Web_Config, Host); Config.Set.Server_Port (Web_Config, Port); -- Start the server ...
<?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="...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- This file is generated by SWIG. Please do *not* modify by hand. -- with interfaces.c; with interfaces.c.strings; with speech_tools_c.Pointers; with swig.pointers; with interfaces.C; package speech_tools_c.Binding is function new_EST_Wave return speech_tools_c.Pointers.EST_Wave_Pointer; function EST_Wav...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with avtas.lmcp.types; use avtas.lmcp.types; package avtas.lmcp.object is type Object is tagged null record; type Object_Acc is access Object; type Object_Class_Acc is access Object'Class; function clone(this, that: Object_Acc) return Object_Acc is abstract; function "="(this, that: Object) ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Type_Conversions is function Create (Subtype_Mark : not null Program.Elements.Expressions .Expression_Acc...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-workspaces-beans -- Beans for module workspaces -- 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 u...
-- 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...
----------------------------------------------------------------------- -- awa-applications-configs -- Read application configuration files -- Copyright (C) 2011, 2012, 2015, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "Lic...
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@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 Hoc...
with Ada.Text_IO; package body Tagged_Subprogram_Calls is package body Inner is procedure P(A : E) is begin null; end P; end Inner; procedure Test(Param : Inner.E) is type F is new Inner.E range Param .. Inner.C; O : F := B; Q : Inner.E := Inner.B...
package body HTML_Table is procedure Print(Items: Item_Array; Column_Heads: Header_Array) is function Blanks(N: Natural) return String is -- indention for better readable HTML begin if N=0 then return ""; else return " " & Blanks(N-1); end if;...
-- Copyright 2019 Patrick Kelly (entomy) -- -- 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 agre...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
function Ada.Strings.Generic_Unbounded.Generic_Hash (Key : Unbounded_String) return Containers.Hash_Type is pragma Suppress (Access_Check); begin return Fixed_Hash (Key.Data.Items (1 .. Key.Length)); end Ada.Strings.Generic_Unbounded.Generic_Hash;
with Ada.Streams; with Bitmaps.RGB; package Bitmaps.IO is procedure Write_PPM_P6(To : not null access Ada.Streams.Root_Stream_Type'Class; Source : in Bitmaps.RGB.Image); end Bitmaps.IO;
-- Copyright 2019-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. -- -- ...
-- Copyright 2010-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. -- -- ...
------------------------------------------------------------------------------ -- -- -- File: -- -- formatted_output.ads -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
private with Ada.Text_IO; private with GNAT.OS_Lib; private with CLIC.Subcommand.Instance; private with CLIC.TTY; package CLIC_Ex.Commands is procedure Execute; private procedure Set_Global_Switches (Config : in out CLIC.Subcommand.Switches_Configuration); package Sub_Cmd is new CLIC.Subcommand.Inst...
-- 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. -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- C64103B.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...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Slim.Message_Visiters; package body Slim.Messages.DSCO is List : constant Field_Description_Array := (1 => (Uint_8_Fiel...
with Selection; with Ada.Text_IO; procedure Main is Arr: Selection.Arr (0 .. 3) := (5, 8, 6, 2); begin for I in Arr'Range loop Ada.Text_IO.Put_Line(Arr (I)'Image); end loop; Selection.Sort(Arr); Ada.Text_IO.Put_Line("Sorted:"); for I in Arr'Range loop Ada.Text_IO.Put_Line(Arr (I)'Image); end l...
with System; with C.string; package body MPFR.Root_FR is use type C.signed_int; procedure memcpy (dst, src : System.Address; n : C.size_t) with Import, Convention => Intrinsic, External_Name => "__builtin_memcpy"; -- implementation function To_MP_Float ( X : Long_Long_Float; Precision : MPFR.Precision; ...
with Ada.Unchecked_Conversion; private with STM32_SVD.CORDIC; package STM32.CORDIC is pragma Elaborate_Body; type CORDIC_Coprocessor is limited private; type CORDIC_Function is (Cosine, Sine, Phase, Modulus, Arctangent, Hyperbolic_Cosine, Hyperbolic_Sine, Hype...
----------------------------------------------------------------------- -- awa-sysadmin-beans -- Sysadmin specific Ada beans -- 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 ...
with Ada.Real_Time; use Ada.Real_Time; with STM32_SVD; use STM32_SVD; with STM32_SVD.TIM; use STM32_SVD.TIM; with STM32_SVD.RCC; use STM32_SVD.RCC; package body STM32GD.Timer.Peripheral is Timer_Callback : Timer_Callback_Type := null; Frequency : constant Natural := 1_000; CK_INT : constant Natural := 8_000_...
package Import1 is type Arr is array (Positive range <>) of Integer; procedure Create (Bounds : Arr); end Import1;
-- Copyright 2012-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. -- -- ...
-- C45264A.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...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Anonymous_Access_Definitions; with Program.Lexical_Elements; with Program.Elements.Parameter_Specifications; pa...
-- C87B45C.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 -- -- -- -- ...
package body Problem_12 is function Solution_1 return Int64 is Sum : Int64 := 1; Triangle_Num : Int64 := 1; Inc : Int64 := 1; Prime_Count : Int64; Temp : Int64; I : Int64 := 3; begin loop Sum := 1; Temp := Triangle_Num; ...
with Ada.Finalization; use Ada.Finalization; package body EU_Projects.Nodes.Action_Nodes.WPs is overriding function Next (Object : Deliverable_Iterator; Position : Deliverable_Cursor) return Deliverable_Cursor is pragma Unreferenced (Object); begin if Position.Clone = Deliverable_...
----------------------------------------------------------------------- -- Logs -- Utility Log Package -- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License");...
-- Galois Linear Feedback Shift Register -- https://en.wikipedia.org/wiki/Linear-feedback_shift_register#Galois_LFSRs package body Random is State : UInt16 := 16#DEAD#; function Next return UInt16 is Taps : constant UInt16 := 16#B400#; LFSR : UInt16 := State; LSB : UInt16; begin...
-- 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_glx_get_minmax_parameterfv_reply_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; pad0 : alias...
<?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="...
----------------------------------------------------------------------- -- AWA.Jobs.Models -- AWA.Jobs.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: https://ada-gen.goog...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, AdaCore -- -- -- -- ...
package FLTK.Widgets.Groups.Packed is type Packed_Group is new Group with private; type Packed_Group_Reference (Data : not null access Packed_Group'Class) is limited null record with Implicit_Dereference => Data; package Forge is function Create (X, Y, W, H : in Inte...
with Tkmrpc.Types; with Tkmrpc.Operations.Ike; package Tkmrpc.Request.Ike.Esa_Select is Data_Size : constant := 8; type Data_Type is record Esa_Id : Types.Esa_Id_Type; end record; for Data_Type use record Esa_Id at 0 range 0 .. (8 * 8) - 1; end record; for Data_Type'Size use Data_Size ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 - 2019 Joakim Strandberg <joakim@mequinox.se> -- -- 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.ap...
-- 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 = "CIRCL" type = "api" function start() setratelimit(2) end function vertical(ctx, domain) apirequest(ctx, domain) end funct...
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Slim.Message_Visiters; package body Slim.Messages.ANIC is List : constant Field_Description_Array := (1 => (Uint_8_Fiel...
-- C67002B.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...
----------------------------------------------------------------------- -- streams.files.tests -- Unit tests for buffered streams -- Copyright (C) 2010, 2011, 2017, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); --...
package body Collisions is function Collide(A, B : not null EntityClassAcc; Col : out Collision) return Boolean is begin Col.A := A; Col.B := B; return Dispatcher(A.all.EntityType, B.all.EntityType).all(Col); end Collide; function CircleOnCircle(Col : in out Collision) return Boolean i...
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
with Ada.Finalization; private with Interfaces.C, System; package FLTK is -- Ugly implementation detail, never use this. -- This is necessary so things like Text_Buffers and -- Widgets can talk to each other behind the binding. type Wrapper is new Ada.Finalization.Limited_Control...
-- CE3804M.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...
-- BSD 3-Clause License -- -- Copyright (c) 2017, Maxim Reznik -- 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 source code must retain the above copyright noti...
with GNAT.Command_Line; use GNAT.Command_Line; with GNAT.Strings; use GNAT.Strings; package body Command_Line is function Parse_Command_Line (Input_Files : out Input_File_Vectors.Vector; Recurse_Projects : out Boolean; Directory_Prefix : out SU.Unbounded_String; Output_File : ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...